[7674] Fixed check of DB script string ids from db_script_string at loading. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-17 15:16:19 -05:00
parent e5088b8522
commit 9af93fa834
+5 -2
View File
@@ -7755,10 +7755,12 @@ void ObjectMgr::CheckScripts(ScriptMapMap const& scripts,std::set<int32>& ids)
{
for(ScriptMap::const_iterator itrM = itrMM->second.begin(); itrM != itrMM->second.end(); ++itrM)
{
if(itrM->second.dataint)
switch(itrM->second.command)
{
case SCRIPT_COMMAND_TALK:
{
if(!GetTrinityStringLocale (itrM->second.dataint))
sLog.outErrorDb( "Table `db_script_string` has not existed string id %u", itrM->first);
sLog.outErrorDb( "Table `db_script_string` not has string id %u used db script (ID: %u)", itrM->second.dataint, itrMM->first);
if(ids.count(itrM->second.dataint))
ids.erase(itrM->second.dataint);
@@ -7766,6 +7768,7 @@ void ObjectMgr::CheckScripts(ScriptMapMap const& scripts,std::set<int32>& ids)
}
}
}
}
void ObjectMgr::LoadDbScriptStrings()
{