Core/Creatures: Fixed crash in CreatureAI::JustAppeared caused by scripted summons without SummonProperties
Port From (https://github.com/TrinityCore/TrinityCore/commit/1c00109756815b6888303b31748595521fd7809c)
This commit is contained in:
@@ -156,8 +156,9 @@ namespace Game.AI
|
||||
if (!me.IsSummon())
|
||||
return;
|
||||
|
||||
// Summons without SummonProperties are generally scripted summons that don't belong to any owner
|
||||
TempSummon summon = me.ToTempSummon();
|
||||
if (summon.m_Properties.Control != SummonCategory.Unk && summon.m_Properties.Control != SummonCategory.Pet)
|
||||
if (summon.m_Properties == null || (summon.m_Properties.Control != SummonCategory.Unk && summon.m_Properties.Control != SummonCategory.Pet))
|
||||
return;
|
||||
|
||||
// Not applied to vehicles
|
||||
|
||||
Reference in New Issue
Block a user