From 53589092b22b6fa5e92140f30621b6d40eea4eb2 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 30 Aug 2021 20:53:22 +0200 Subject: [PATCH] Docking: warning fix for when IM_ASSERT() is empty --- imgui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 5e86bc1d..3728c37b 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -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;