From 1dbc9cd52adc99c537a45215ab1761d3a53e2306 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 a3b0b467..15e4dbba 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)