From 4789c7e485244aa6489f89dbb03b19d4ad0ea1ec Mon Sep 17 00:00:00 2001 From: Andrej Redeky <41929176+WSSDude420@users.noreply.github.com> Date: Sun, 5 Jun 2022 13:34:10 +0200 Subject: [PATCH] Misc: Fix custom assertion macro failing to compile imgui.cpp (#5378) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 3f1191a6e..320ba5ce1 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -15658,7 +15658,7 @@ static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockN ImGuiDockNode* root_payload_as_host = root_payload->DockNodeAsHost; ImGuiDockNode* ref_node_for_rect = (host_node && !host_node->IsVisible) ? DockNodeGetRootNode(host_node) : host_node; if (ref_node_for_rect) - IM_ASSERT(ref_node_for_rect->IsVisible); + IM_ASSERT(ref_node_for_rect->IsVisible == true); // Filter, figure out where we are allowed to dock ImGuiDockNodeFlags src_node_flags = root_payload_as_host ? root_payload_as_host->MergedFlags : root_payload->WindowClass.DockNodeFlagsOverrideSet;