diff --git a/src/world/Manager/TerritoryMgr.cpp b/src/world/Manager/TerritoryMgr.cpp index efd85073..a6c0e452 100644 --- a/src/world/Manager/TerritoryMgr.cpp +++ b/src/world/Manager/TerritoryMgr.cpp @@ -165,7 +165,13 @@ bool Sapphire::World::Manager::TerritoryMgr::createDefaultTerritories() uint32_t guid = getNextInstanceId(); auto pNaviMgr = framework()->get< Manager::NaviMgr >(); - bool hasNaviMesh = pNaviMgr->setupTerritory( territoryInfo->name ); + std::string bgPath = territoryInfo->bg; + std::string bg; + auto findPos = bgPath.find_last_of( "/" ); + if( findPos != std::string::npos ) + bg = bgPath.substr( findPos + 1 ); + + bool hasNaviMesh = pNaviMgr->setupTerritory( bg ); Logger::info( "{0}\t{1}\t{2}\t{3:<10}\t{4}\t{5}\t{6}", territoryTypeId,