mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Transports: Add missing null pointer check in Transport::SummonPassenger
This commit is contained in:
@@ -477,7 +477,8 @@ TempSummon* Transport::SummonPassenger(uint32 entry, Position const& pos, TempSu
|
||||
if (summoner && !(properties && properties->GetFlags().HasFlag(SummonPropertiesFlags::IgnoreSummonerPhase)))
|
||||
phaseShiftOwner = summoner;
|
||||
|
||||
PhasingHandler::InheritPhaseShift(summon, phaseShiftOwner);
|
||||
if (phaseShiftOwner)
|
||||
PhasingHandler::InheritPhaseShift(summon, phaseShiftOwner);
|
||||
|
||||
summon->SetCreatedBySpell(spellId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user