[7689] Batter EventAI loading checks and fix one from possible crash cases. Author: NoFantasy
--HG-- branch : trunk
This commit is contained in:
1 parent
f9befe1d3d
commit
d159e84325
3 files changed
+33
-14
No files matched your search
@@ -3865,6 +3865,16 @@ void ObjectMgr::LoadScripts(ScriptMapMap& scripts, char const* tablename)
|
||||
break;
|
||||
}
|
||||
|
||||
case SCRIPT_COMMAND_EMOTE:
|
||||
{
|
||||
if(!sEmotesStore.LookupEntry(tmp.datalong))
|
||||
{
|
||||
sLog.outErrorDb("Table `%s` has invalid emote id (datalong = %u) in SCRIPT_COMMAND_EMOTE for script id %u",tablename,tmp.datalong,tmp.id);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case SCRIPT_COMMAND_TELEPORT_TO:
|
||||
{
|
||||
if(!sMapStore.LookupEntry(tmp.datalong))
|
||||
|
||||
Reference in new issue
Block a user