From b40dc5c4f2935cfdb68c7195745aad0bf8bc19ed Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 29 Jan 2018 22:57:17 +0100 Subject: [PATCH] Nav: NavScoreItem uses g.CurrentWindow and not g.NavWindow. This was changed as part of b3cba62b80038bd8c8fd722ba5e4e13c83bfb8bc when first trying to implement the NavFlattenedFlag. As it turns out we won't need it. Committing separately for safety. (#787) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 2dba66647..edd56adf0 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2135,7 +2135,7 @@ static float NavScoreItemDistInterval(float a0, float a1, float b0, float b1) static bool NavScoreItem(ImGuiNavMoveResult* result, ImRect cand) { ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.NavWindow; + ImGuiWindow* window = g.CurrentWindow; if (g.NavLayer != window->DC.NavLayerCurrent) return false;