1
0
mirror of https://github.com/Mauler125/r5sdk.git synced 2025-02-09 19:15:03 +01:00

Recast: fix crash in prune tool

Always check if we allocated a flag buffer before showing the options.
This commit is contained in:
Kawe Mazidjatari 2024-10-18 13:51:28 +02:00
parent fc43cbabd9
commit d9db7d3d15

@ -238,7 +238,7 @@ void NavMeshPruneTool::handleMenu()
dtNavMesh* nav = m_editor->getNavMesh();
if (!nav) return;
if (!m_hitPosSet) return;
if (!m_flags || !m_hitPosSet) return;
if (ImGui::Button("Clear Selection"))
{