From 80892196951a0bd6559341d03dde764c88c4d296 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 15 Apr 2009 11:54:27 -0500 Subject: *Set creature's AIName to "EventAI" if it has event script. --HG-- branch : trunk --- src/game/CreatureEventAIMgr.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/game/CreatureEventAIMgr.cpp b/src/game/CreatureEventAIMgr.cpp index 3e6c2822759..5ac08400804 100644 --- a/src/game/CreatureEventAIMgr.cpp +++ b/src/game/CreatureEventAIMgr.cpp @@ -544,6 +544,9 @@ void CreatureEventAIMgr::LoadCreatureEventAI_Scripts() //Add to list m_CreatureEventAI_Event_Map[creature_id].push_back(temp); ++Count; + + if(cInfo->AIName == "") + const_cast(cInfo)->AIName = "EventAI"; } while (result->NextRow()); delete result; -- cgit v1.2.3