[Code] PathManager Global to Singleton Cleanup (#4924)

This commit is contained in:
Chris Miles authored and GitHub committed 2025-06-22 13:50:52 -04:00
1 parent e846bb86b6
commit df86ad371b
33 files changed
+83 -89

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
IPathfinder *IPathfinder::Load(const std::string &zone) {
struct stat statbuffer;
std::string navmesh_path = fmt::format("{}/maps/nav/{}.nav", path.GetServerPath(), zone);
std::string navmesh_path = fmt::format("{}/maps/nav/{}.nav", PathManager::Instance()->GetServerPath(), zone);
if (stat(navmesh_path.c_str(), &statbuffer) == 0) {
return new PathfinderNavmesh(navmesh_path);
}