Recast: fix crash caused by uninitialized member variable

Should've been initialized. Caused a crash sometimes when loading up the NavMeshTesterTool as this will be some random value.
This commit is contained in:
Kawe Mazidjatari 2024-07-09 01:16:28 +02:00
parent c2df5e19bf
commit 4c37d8fc69

View File

@ -63,6 +63,7 @@ Editor::Editor() :
m_filterLedgeSpans(true),
m_filterWalkableLowHeightSpans(true),
m_selectedNavMeshType(NAVMESH_SMALL),
m_loadedNavMeshType(NAVMESH_SMALL),
m_navmeshName(NavMesh_GetNameForType(NAVMESH_SMALL)),
m_tool(0),
m_ctx(0)