aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2019-06-23 23:32:21 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-12 02:11:15 +0100
commit743d022cee936d47a60f23e72fda7fb72ee61907 (patch)
tree1f540f79cf66bc097f1cbfc1223d17b520d36824
parent38d7c1530a65a7ff1bd10775c4a35269b2416538 (diff)
AI/SmartAI: Properly forward to inherited CreatureAI::JustAppeared in SmartAI::JustAppeared. Fixes #23491.
(cherry picked from commit 854a113fc7b6610873b77355aed88900ce3b5bc0)
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp3
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;