Core/Transports: Add missing null pointer check in Transport::SummonPassenger
Port From (https://github.com/TrinityCore/TrinityCore/commit/db8280a0fb4f3950ff439b7d98c5c975996ce4ea)
This commit is contained in:
@@ -480,7 +480,8 @@ namespace Game.Entities
|
|||||||
if (summoner != null && !(properties != null && properties.GetFlags().HasFlag(SummonPropertiesFlags.IgnoreSummonerPhase)))
|
if (summoner != null && !(properties != null && properties.GetFlags().HasFlag(SummonPropertiesFlags.IgnoreSummonerPhase)))
|
||||||
phaseShiftOwner = summoner;
|
phaseShiftOwner = summoner;
|
||||||
|
|
||||||
PhasingHandler.InheritPhaseShift(summon, phaseShiftOwner);
|
if (phaseShiftOwner != null)
|
||||||
|
PhasingHandler.InheritPhaseShift(summon, phaseShiftOwner);
|
||||||
|
|
||||||
summon.SetCreatedBySpell(spellId);
|
summon.SetCreatedBySpell(spellId);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user