From 743d022cee936d47a60f23e72fda7fb72ee61907 Mon Sep 17 00:00:00 2001 From: Treeston Date: Sun, 23 Jun 2019 23:32:21 +0200 Subject: AI/SmartAI: Properly forward to inherited CreatureAI::JustAppeared in SmartAI::JustAppeared. Fixes #23491. (cherry picked from commit 854a113fc7b6610873b77355aed88900ce3b5bc0) --- src/server/game/AI/SmartScripts/SmartAI.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3