Skip to content

Commit

Permalink
example_ImGui_nodeHighlight.as: fixed out of bounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Dec 5, 2024
1 parent e84322a commit a078c21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/scripts/example_ImGui_nodeHighlight.as
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void frameStep(float dt)
if (ImGui::Begin("Example", closeBtnHandler.windowOpen, 0))
{
closeBtnHandler.draw();

ImGui::TextDisabled("::: NODE HIGHLIGHT DEMO:::");
ImGui::Separator();
BeamClass@ actor = game.getCurrentTruck();
Expand Down Expand Up @@ -55,7 +55,7 @@ void frameStep(float dt)
drawConfigUI();
}
}

ImGui::End();
}
}
Expand Down Expand Up @@ -178,6 +178,7 @@ void drawNodeHighlights(BeamClass@ actor)
int mouseClosestNodeID = -1;

int mouseClosestNodeDist = 999999;
nodeSelectedStates.resize(actor.getNodeCount());

ImDrawList@ drawlist = imgui_utils::ImGetDummyFullscreenWindow("nodeHighlights");
for (int i = 0; i < actor.getNodeCount(); i++)
Expand Down

0 comments on commit a078c21

Please sign in to comment.