Missing assert + comments

This commit is contained in:
ocornut
2014-08-12 00:36:13 +01:00
parent ab8561e6fc
commit 150ad95bd6
2 changed files with 5 additions and 2 deletions

View File

@@ -694,6 +694,7 @@ public:
static ImGuiWindow* GetCurrentWindow()
{
IM_ASSERT(GImGui.CurrentWindow != NULL); // ImGui::NewFrame() hasn't been called yet?
GImGui.CurrentWindow->Accessed = true;
return GImGui.CurrentWindow;
}