Core/AI: Remove "enforced override"-check in the EventAI-manager in case of AI not being set to EventAI.

This commit is contained in:
click
2012-06-02 14:43:07 +02:00
parent 5e6daadcd0
commit 09c497bce2
@@ -740,10 +740,7 @@ void CreatureEventAIMgr::LoadCreatureEventAI_Scripts()
if (CreatureTemplate const* cInfo = sObjectMgr->GetCreatureTemplate(itr->first)) if (CreatureTemplate const* cInfo = sObjectMgr->GetCreatureTemplate(itr->first))
{ {
if (cInfo->AIName != "EventAI") if (cInfo->AIName != "EventAI")
{ sLog->outErrorDb("Creature entry %u has EventAI scripts, but its AIName is not 'EventAI' - possible AI-mismatch?", itr->first);
sLog->outErrorDb("Creature entry %u has EventAI scripts, but its AIName is not 'EventAI', changing to EventAI", itr->first);
const_cast<CreatureTemplate*>(cInfo)->AIName = "EventAI";
}
} }
} }