Fixed warning.

This commit is contained in:
Branimir Karadžić 2017-11-20 21:42:55 -08:00
parent cb9263b689
commit 3004ef196d
1 changed files with 1 additions and 1 deletions

View File

@ -3752,7 +3752,7 @@ bool ImGui::BeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags ext
void ImGui::EndPopup()
{
ImGuiWindow* window = GetCurrentWindow();
ImGuiWindow* window = GetCurrentWindow(); (void)window;
IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginPopup()/EndPopup() calls
IM_ASSERT(GImGui->CurrentPopupStack.Size > 0);
End();