Core/SAI: Fix error message

Fix the error message about valid range values for SMART_ACTION_ACTIVATE_GAMEOBJECT

(cherry picked from commit 5b9acbded1)
This commit is contained in:
jackpoz
2021-11-14 11:04:58 +01:00
committed by Shauren
parent 61073f86b0
commit ccf8cf3bbf
@@ -2251,7 +2251,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
if (e.action.activateGameObject.gameObjectAction >= uint32(GameObjectActions::Max))
{
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry " SI64FMTD " SourceType %u Event %u Action %u has gameObjectAction parameter out of range (max allowed %u, current value %u), skipped.",
e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), uint32(GameObjectActions::Max), e.action.activateGameObject.gameObjectAction);
e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), uint32(GameObjectActions::Max) - 1, e.action.activateGameObject.gameObjectAction);
return false;
}
break;