diff options
author | Viste <viste02@gmail.com> | 2021-09-14 15:38:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 14:38:56 +0200 |
commit | a9796af1747990ff1df8668ef0da1153742f6457 (patch) | |
tree | 716db5236cafeda708929114d09ce7d619b1cd8b /src/server/game/AI/CreatureAI.cpp | |
parent | bd956b5a5750014bd4168dd82df3438dcc5df43f (diff) |
fix(Core/Misc): bunch of crashfixes (#7307)
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r-- | src/server/game/AI/CreatureAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index 2957153dfb..91afb98e30 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -51,7 +51,7 @@ void CreatureAI::DoZoneInCombat(Creature* creature /*= nullptr*/, float maxRange creature->AI()->AttackStart(nearTarget); else if (creature->IsSummon()) { - if (Unit* summoner = creature->ToTempSummon()->GetSummoner()) + if (Unit* summoner = creature->ToTempSummon()->GetSummonerUnit()) { Unit* target = summoner->getAttackerForHelper(); if (!target && summoner->CanHaveThreatList() && !summoner->getThreatManager().isThreatListEmpty()) |