Core/SAI: Fix one startup error
This commit is contained in:
1 parent
b40e08ac55
commit
09699cbf88
1 file changed
+1
-1
@@ -1499,7 +1499,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (phaseGroup && GetPhasesForGroup(phaseGroup))
|
||||
if (!phaseGroup && GetPhasesForGroup(phaseGroup))
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "SmartScript: SMART_ACTION_SET_INGAME_PHASE_GROUP uses invalid phase group id %u for creature %u, skipped", phaseGroup, e.entryOrGuid);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user