Skip to content

Commit

Permalink
add imgui ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
kjblanchard committed Nov 7, 2024
1 parent 47f450f commit 29dab5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engine/src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ Game::Game() {
}
Game::~Game() {
sgCloseDebugLogFile();
#ifdef imgui
ImGuiIO &io = ImGui::GetIO();
SDL_free((void*)io.IniFilename);
SDL_free((void *)io.IniFilename);
#endif
}
void Game::Initialize() {
char *jsonPath = NULL;
Expand Down

0 comments on commit 29dab5f

Please sign in to comment.