*Set creature's AIName to "EventAI" if it has event script.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-15 11:54:27 -05:00
parent fc2a30a53d
commit 8089219695
+3
View File
@@ -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<CreatureInfo*>(cInfo)->AIName = "EventAI";
} while (result->NextRow());
delete result;