Skip to content

Commit

Permalink
build: fix unused variable warning in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dolphineye committed Apr 25, 2022
1 parent ba06b6e commit d2a5c2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13095,7 +13095,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 d2a5c2d

Please sign in to comment.