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
+2 -1
View File
@@ -480,7 +480,8 @@ namespace Game.Entities
if (summoner != null && !(properties != null && properties.GetFlags().HasFlag(SummonPropertiesFlags.IgnoreSummonerPhase)))
phaseShiftOwner = summoner;
PhasingHandler.InheritPhaseShift(summon, phaseShiftOwner);
if (phaseShiftOwner != null)
PhasingHandler.InheritPhaseShift(summon, phaseShiftOwner);
summon.SetCreatedBySpell(spellId);