Core/DynamicInfo: rename some parameters according packet definitions (#24192)

(cherry picked from commit 5cfce94619)
This commit is contained in:
ForesterDev
2020-02-28 22:23:20 +04:00
committed by Shauren
parent 8f4c6ebb49
commit 5e178b30fa
7 changed files with 69 additions and 67 deletions
@@ -1715,9 +1715,9 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
return false;
}
if (!sLightStore.LookupEntry(e.action.overrideLight.lightId))
if (!sLightStore.LookupEntry(e.action.overrideLight.overrideLightId))
{
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry " SI64FMTD " SourceType %u Event %u Action %u uses non-existent lightId %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.action.overrideLight.lightId);
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry " SI64FMTD " SourceType %u Event %u Action %u uses non-existent overrideLightId %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.action.overrideLight.overrideLightId);
return false;
}