From 4c37d8fc690a71a2c5cab74e0e7223470c38b307 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 9 Jul 2024 01:16:28 +0200 Subject: [PATCH] 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. --- src/naveditor/Editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/naveditor/Editor.cpp b/src/naveditor/Editor.cpp index 17dbccbf..9bfee143 100644 --- a/src/naveditor/Editor.cpp +++ b/src/naveditor/Editor.cpp @@ -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)