diff options
author | Treeston <treeston.mmoc@gmail.com> | 2019-06-23 23:32:21 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-12 02:11:15 +0100 |
commit | 743d022cee936d47a60f23e72fda7fb72ee61907 (patch) | |
tree | 1f540f79cf66bc097f1cbfc1223d17b520d36824 /src | |
parent | 38d7c1530a65a7ff1bd10775c4a35269b2416538 (diff) |
AI/SmartAI: Properly forward to inherited CreatureAI::JustAppeared in SmartAI::JustAppeared. Fixes #23491.
(cherry picked from commit 854a113fc7b6610873b77355aed88900ce3b5bc0)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index fef2159e623..0c71d7c00c3 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -528,6 +528,9 @@ void SmartAI::InitializeAI() void SmartAI::JustAppeared() { + CreatureAI::JustAppeared(); + + if (me->isDead()) return; |