diff --git a/src/Unlinker/Unlinker.cpp b/src/Unlinker/Unlinker.cpp index 557b54b2..c2bc9776 100644 --- a/src/Unlinker/Unlinker.cpp +++ b/src/Unlinker/Unlinker.cpp @@ -231,7 +231,7 @@ class Unlinker::Impl return false; } - SearchPathFilesystem* searchPath = new SearchPathFilesystem(absolutePath); + auto* searchPath = new SearchPathFilesystem(absolutePath); LoadSearchPath(searchPath); m_search_paths.CommitSearchPath(searchPath); @@ -401,6 +401,7 @@ public: std::string absoluteZoneDirectory = absolute(std::filesystem::path(zonePath).remove_filename()).string(); SearchPaths searchPathsForZone = GetSearchPathsForZone(absoluteZoneDirectory); + searchPathsForZone.IncludeSearchPath(&m_search_paths); Zone* zone = ZoneLoading::LoadZone(zonePath); if (zone == nullptr)