Skip to content

Commit

Permalink
Docking: warning fix for when IM_ASSERT() is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Aug 31, 2021
1 parent dedb381 commit 5358909
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imgui.cpp
Expand Up @@ -13356,7 +13356,8 @@ static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window
erased = true;
break;
}
IM_ASSERT(erased);
if (!erased)
IM_ASSERT(erased);
if (node->VisibleWindow == window)
node->VisibleWindow = NULL;

Expand Down

0 comments on commit 5358909

Please sign in to comment.