Skip to content

Commit

Permalink
Core/Scripts: added loading error message for SCRIPT_COMMAND_PLAY_ANI…
Browse files Browse the repository at this point in the history
…MKIT
  • Loading branch information
Lopfest committed Jan 26, 2016
1 parent 54ab2e0 commit d43d010
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/server/game/Globals/ObjectMgr.cpp
Expand Up @@ -111,6 +111,7 @@ std::string GetScriptCommandName(ScriptCommands command)
case SCRIPT_COMMAND_MODEL: res = "SCRIPT_COMMAND_MODEL"; break;
case SCRIPT_COMMAND_CLOSE_GOSSIP: res = "SCRIPT_COMMAND_CLOSE_GOSSIP"; break;
case SCRIPT_COMMAND_PLAYMOVIE: res = "SCRIPT_COMMAND_PLAYMOVIE"; break;
case SCRIPT_COMMAND_PLAY_ANIMKIT: res = "SCRIPT_COMMAND_PLAY_ANIMKIT"; break;
default:
{
char sz[32];
Expand Down Expand Up @@ -4863,6 +4864,16 @@ void ObjectMgr::LoadScripts(ScriptsType type)
}
break;
}
case SCRIPT_COMMAND_PLAY_ANIMKIT:
{
if (!sAnimKitStore.LookupEntry(tmp.PlayAnimKit.AnimKitID))
{
TC_LOG_ERROR("sql.sql", "Table `%s` has invalid AnimKid id (datalong = %u) in SCRIPT_COMMAND_PLAY_ANIMKIT for script id %u",
tableName.c_str(), tmp.PlayAnimKit.AnimKitID, tmp.id);
continue;
}
break;
}
default:
break;
}
Expand Down

0 comments on commit d43d010

Please sign in to comment.