Fix PushStyleVar/PopStyleVar imbalance

This commit is contained in:
Amos 2022-01-18 01:46:27 +01:00
parent 57bc8fd6de
commit 2be10dbaa4

View File

@ -150,7 +150,7 @@ void CConsole::BasePanel(bool* bDraw)
}
///////////////////////////////////////////////////////////////////////
ImGui::PopStyleVar();
ImGui::PopStyleVar(1);
ImGui::EndChild();
ImGui::Separator();
@ -305,7 +305,7 @@ void CConsole::SuggestPanel(void)
ImGui::PopAllowKeyboardFocus();
ImGui::End();
ImGui::PopStyleVar(1);
ImGui::PopStyleVar(2);
}
//-----------------------------------------------------------------------------