From a21ba34d3d187d04c885e6734b17c0785fe3737e Mon Sep 17 00:00:00 2001 From: Gtker Date: Mon, 18 Sep 2023 15:42:38 +0200 Subject: [PATCH] Fix map without terrain loading incorrect file Fixes https://github.com/namreeb/namigator/issues/61. --- pathfind/Map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathfind/Map.cpp b/pathfind/Map.cpp index c297dc0..cad99e9 100644 --- a/pathfind/Map.cpp +++ b/pathfind/Map.cpp @@ -245,7 +245,7 @@ Map::Map(const std::filesystem::path& dataPath, const std::string& mapName) auto const result = m_navMesh.init(¶ms); assert(result == DT_SUCCESS); - auto const nav_path = m_dataPath / "Nav" / "Map.nav"; + auto const nav_path = m_dataPath / "Nav" / m_mapName / "Map.nav"; utility::BinaryStream navIn(nav_path);