mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[11593] Use MAX_UNIT_STAND_STATE instead client dependent last value in enum.
This commit is contained in:
parent
a0852287ac
commit
8c560ebd97
3 changed files with 4 additions and 2 deletions
|
|
@ -561,7 +561,7 @@ void ScriptMgr::LoadScripts(ScriptMapMap& scripts, const char* tablename)
|
|||
}
|
||||
case SCRIPT_COMMAND_STAND_STATE:
|
||||
{
|
||||
if (tmp.standState.stand_state > UNIT_STAND_STATE_CUSTOM)
|
||||
if (tmp.standState.stand_state >= MAX_UNIT_STAND_STATE)
|
||||
{
|
||||
sLog.outErrorDb("Table `%s` has invalid stand state (datalong = %u) in SCRIPT_COMMAND_STAND_STATE for script id %u", tablename, tmp.standState.stand_state, tmp.id);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue