diff options
| -rw-r--r-- | src/server/game/AI/CreatureAI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index c8dd13f53b5..b6feeaa51bf 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -158,8 +158,9 @@ void CreatureAI::JustAppeared() 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->Category != SUMMON_CATEGORY_UNK && summon->m_Properties->Category != SUMMON_CATEGORY_PET) + if (!summon->m_Properties || (summon->m_Properties->Category != SUMMON_CATEGORY_UNK && summon->m_Properties->Category != SUMMON_CATEGORY_PET)) return; // Not applied to vehicles |
