From 29dab5fedd5e01bf8913c01bd9150322f8e53e69 Mon Sep 17 00:00:00 2001 From: Kevin Blanchard Date: Thu, 7 Nov 2024 15:17:01 -0500 Subject: [PATCH] add imgui ifdef --- src/engine/src/Game.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/src/Game.cpp b/src/engine/src/Game.cpp index dbd1014..0f3492f 100644 --- a/src/engine/src/Game.cpp +++ b/src/engine/src/Game.cpp @@ -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;