Core/SmartAI: Correct startup log

This commit is contained in:
Aokromes
2016-04-26 02:08:17 +02:00
parent 5c743ffbb0
commit 2c44f9ed2c

View File

@@ -1174,8 +1174,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
return false;
}
PhaseGroupEntry const* phase = sPhaseGroupStore.LookupEntry(phaseGroup);
if (!phase)
if (phaseGroup && GetPhasesForGroup(phaseGroup).empty())
{
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;