Skip to content

Commit

Permalink
Merge pull request #62 from gtker/master
Browse files Browse the repository at this point in the history
Fix map without terrain loading incorrect file
  • Loading branch information
namreeb authored Sep 18, 2023
2 parents 0d9dabf + a21ba34 commit 8d67ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pathfind/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Map::Map(const std::filesystem::path& dataPath, const std::string& mapName)
auto const result = m_navMesh.init(&params);
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);

Expand Down

0 comments on commit 8d67ec6

Please sign in to comment.