From 2fd3825569c7fc0d74d2658b3b347a1352e56dc5 Mon Sep 17 00:00:00 2001 From: Malkierian Date: Tue, 25 Mar 2025 10:41:25 -0700 Subject: [PATCH] Fix warning from popped, minimized menu. (#5212) * Fix warning from popped, minimized menu. * Pre-empt another possible missing Pop. --- soh/soh/SohGui/Menu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soh/soh/SohGui/Menu.cpp b/soh/soh/SohGui/Menu.cpp index 63fdca5a9..6bb4698d5 100644 --- a/soh/soh/SohGui/Menu.cpp +++ b/soh/soh/SohGui/Menu.cpp @@ -527,6 +527,7 @@ void Menu::DrawElement() { if (!popout) { ImGui::PopStyleVar(); } + ImGui::PopStyleColor(); ImGui::End(); return; } @@ -537,6 +538,7 @@ void Menu::DrawElement() { if (!popout) { ImGui::PopStyleVar(); } + ImGui::PopStyleColor(); CVarSetInteger(CVAR_SETTING("Menu.Popout"), popped); CVarSetFloat(CVAR_SETTING("Menu.PoppedWidth"), poppedSize.x); CVarSetFloat(CVAR_SETTING("Menu.PoppedHeight"), poppedSize.y);