mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-04 01:37:47 +00:00
Use InstanceContent name instead of placeName for InstanceContent
This commit is contained in:
parent
530c9f996f
commit
88f8eb2cb5
1 changed files with 5 additions and 4 deletions
|
@ -167,14 +167,15 @@ Core::ZonePtr Core::TerritoryMgr::createInstanceContent( uint32_t instanceConten
|
|||
return nullptr;
|
||||
|
||||
auto pTeri = getTerritoryDetail( pInstanceContent->territoryType );
|
||||
auto pPlaceName = g_exdDataGen.getPlaceName( pTeri->placeName );
|
||||
|
||||
if( !pTeri || !pPlaceName )
|
||||
if( !pTeri || pInstanceContent->name.empty() )
|
||||
return nullptr;
|
||||
|
||||
g_log.debug( "Starting instance for InstanceContent id: " + std::to_string( instanceContentId ) + " (" + pPlaceName->name + ")" );
|
||||
g_log.debug( "Starting instance for InstanceContent id: " + std::to_string( instanceContentId ) +
|
||||
" (" + pInstanceContent->name + ")" );
|
||||
|
||||
ZonePtr pZone = ZonePtr( new InstanceContent( pInstanceContent, getNextInstanceId(), pTeri->name, pPlaceName->name, instanceContentId ) );
|
||||
ZonePtr pZone = ZonePtr( new InstanceContent( pInstanceContent, getNextInstanceId(), pTeri->name,
|
||||
pInstanceContent->name, instanceContentId ) );
|
||||
pZone->init();
|
||||
|
||||
m_instanceContentToInstanceMap[instanceContentId][pZone->getGuId()] = pZone;
|
||||
|
|
Loading…
Add table
Reference in a new issue