Removed unnecessary assert (will crash well enough without) + comment

This commit is contained in:
ocornut 2015-03-20 11:22:26 +00:00
parent 4cd438f663
commit 876a755bac

View File

@ -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;
}