From 876a755bac153bdc8119b41e0573cebefe73d2a0 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 20 Mar 2015 11:22:26 +0000 Subject: [PATCH] Removed unnecessary assert (will crash well enough without) + comment --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 33e03e12..c0fd6353 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -1222,8 +1222,8 @@ public: static inline ImGuiWindow* GetCurrentWindow() { + // If this ever crash it probably means that ImGui::NewFrame() hasn't been called. We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) ImGuiState& g = *GImGui; - IM_ASSERT(g.CurrentWindow != NULL); // ImGui::NewFrame() hasn't been called yet? g.CurrentWindow->Accessed = true; return g.CurrentWindow; }