Docking: warning fix for when IM_ASSERT() is empty

This commit is contained in:
ocornut 2021-08-30 20:53:22 +02:00
parent dedb381c51
commit 53589092b2

View File

@ -13356,6 +13356,7 @@ static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window
erased = true;
break;
}
if (!erased)
IM_ASSERT(erased);
if (node->VisibleWindow == window)
node->VisibleWindow = NULL;