Core/Transports: Add missing null pointer check in Transport::SummonPassenger

Port From (https://github.com/TrinityCore/TrinityCore/commit/db8280a0fb4f3950ff439b7d98c5c975996ce4ea)
This commit is contained in:
hondacrx
2022-05-04 11:02:57 -04:00
parent 6730879069
commit aeb27ea781
+1
View File
@@ -480,6 +480,7 @@ 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;
if (phaseShiftOwner != null)
PhasingHandler.InheritPhaseShift(summon, phaseShiftOwner); PhasingHandler.InheritPhaseShift(summon, phaseShiftOwner);
summon.SetCreatedBySpell(spellId); summon.SetCreatedBySpell(spellId);