From 8ab89657139f48911bafb01e264a454db270a5a7 Mon Sep 17 00:00:00 2001 From: SleekZ <40346672+SleekZ@users.noreply.github.com> Date: Sat, 1 Jun 2024 17:54:20 +1000 Subject: [PATCH] Improved clarity in comment. (#7642) --- imgui_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_internal.h b/imgui_internal.h index 873369833..0d5cd43a6 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -2998,7 +2998,7 @@ namespace ImGui { // Windows // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) - // If this ever crash because g.CurrentWindow is NULL it means that either + // If this ever crashes because g.CurrentWindow is NULL, it means that either: // - ImGui::NewFrame() has never been called, which is illegal. // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. inline ImGuiWindow* GetCurrentWindowRead() { ImGuiContext& g = *GImGui; return g.CurrentWindow; }