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);