mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
Store instance guid in db when zoning into an instance
This commit is contained in:
parent
9e22af7b48
commit
59e7dd39dc
1 changed files with 7 additions and 3 deletions
|
@ -413,6 +413,10 @@ bool Core::TerritoryMgr::movePlayer( ZonePtr pZone, Core::Entity::PlayerPtr pPla
|
||||||
if( pHousing )
|
if( pHousing )
|
||||||
pPlayer->setTerritoryId( pHousing->getLandSetId() );
|
pPlayer->setTerritoryId( pHousing->getLandSetId() );
|
||||||
}
|
}
|
||||||
|
else if( isInstanceContentTerritory( pZone->getTerritoryTypeId() ) )
|
||||||
|
{
|
||||||
|
pPlayer->setTerritoryId( pZone->getGuId() );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pPlayer->setTerritoryId( 0 );
|
pPlayer->setTerritoryId( 0 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue