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

View File

@ -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"))
{