Skip to content

Commit

Permalink
EAI: Remove error when EAI is assigned with no scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 15, 2021
1 parent 0fe3ed8 commit e37b174
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game/AI/EventAI/CreatureEventAIMgr.cpp
Expand Up @@ -1140,9 +1140,7 @@ void CreatureEventAIMgr::LoadCreatureEventAI_Scripts()
{
bool ainame = strcmp(cInfo->AIName, "EventAI") == 0 || strcmp(cInfo->AIName, "GuardianAI") == 0;
bool hasevent = m_CreatureEventAI_Event_Map.find(i) != m_CreatureEventAI_Event_Map.end();
if (ainame && !hasevent)
sLog.outErrorEventAI("EventAI not has script for creature entry (%u), but AIName = '%s'.", i, cInfo->AIName);
else if (!ainame && hasevent)
if (!ainame && hasevent)
sLog.outErrorEventAI("EventAI has script for creature entry (%u), but AIName = '%s' instead 'EventAI'.", i, cInfo->AIName);
}
}
Expand Down

0 comments on commit e37b174

Please sign in to comment.