|
@@ -2135,7 +2135,7 @@ static float NavScoreItemDistInterval(float a0, float a1, float b0, float b1)
|
|
static bool NavScoreItem(ImGuiNavMoveResult* result, ImRect cand)
|
|
static bool NavScoreItem(ImGuiNavMoveResult* result, ImRect cand)
|
|
{
|
|
{
|
|
ImGuiContext& g = *GImGui;
|
|
ImGuiContext& g = *GImGui;
|
|
- ImGuiWindow* window = g.NavWindow;
|
|
|
|
|
|
+ ImGuiWindow* window = g.CurrentWindow;
|
|
if (g.NavLayer != window->DC.NavLayerCurrent)
|
|
if (g.NavLayer != window->DC.NavLayerCurrent)
|
|
return false;
|
|
return false;
|
|
|
|
|