diff options
author | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-07-12 15:36:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 15:36:55 +0200 |
commit | c92950b3e1f6366d85d707365a8ad2caddafeecc (patch) | |
tree | 9c034dc61e7b8dc5d480bfd476a6631b8d9dd592 /src/server/game/AI/CreatureAI.cpp | |
parent | 352944266822f8c8d3bfdd6078c6f82d3555dd85 (diff) |
Core/DataStores: Update DBC field names to generated ones (#24999)
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r-- | src/server/game/AI/CreatureAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index e028665e843..b13c1660fc8 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -161,7 +161,7 @@ static bool ShouldFollowOnSpawn(SummonPropertiesEntry const* properties) if (!properties) return false; - switch (properties->Category) + switch (properties->Control) { case SUMMON_CATEGORY_PET: return true; @@ -170,7 +170,7 @@ static bool ShouldFollowOnSpawn(SummonPropertiesEntry const* properties) case SUMMON_CATEGORY_UNK: if (properties->Flags & 512) return true; - switch (properties->Type) + switch (properties->Title) { case SUMMON_TYPE_PET: case SUMMON_TYPE_GUARDIAN: |