From 619eafe8c350c09524cf574d1a7a0d1b2f3b02a3 Mon Sep 17 00:00:00 2001 From: collett Date: Mon, 16 Aug 2021 00:01:17 +0900 Subject: [PATCH] update code --- src/world/Actor/Player.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/world/Actor/Player.cpp b/src/world/Actor/Player.cpp index f8c164fc..a71184a5 100644 --- a/src/world/Actor/Player.cpp +++ b/src/world/Actor/Player.cpp @@ -511,18 +511,18 @@ bool Sapphire::Entity::Player::exitInstance() { auto& teriMgr = Common::Service< TerritoryMgr >::ref(); - if( auto d = getCurrentTerritory()->getAsDirector() ) - if( d->getContentFinderConditionId() > 0 ) - { - auto p = makeZonePacket< FFXIVDirectorUnk4 >( getId() ); - p->data().param[0] = d->getDirectorId(); - p->data().param[1] = 1534; - p->data().param[2] = 1; - p->data().param[3] = d->getContentFinderConditionId(); - queuePacket( p ); + auto d = getCurrentTerritory()->getAsDirector(); + if( d && d->getContentFinderConditionId() > 0 ) + { + auto p = makeZonePacket< FFXIVDirectorUnk4 >( getId() ); + p->data().param[0] = d->getDirectorId(); + p->data().param[1] = 1534; + p->data().param[2] = 1; + p->data().param[3] = d->getContentFinderConditionId(); + queuePacket( p ); - prepareZoning( 0, 1, 1, 0, 0, 1, 9 ); - } + prepareZoning( 0, 1, 1, 0, 0, 1, 9 ); + } resetHp(); resetMp();