diff options
author | megamage <none@none> | 2009-04-17 15:16:19 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-17 15:16:19 -0500 |
commit | 9af93fa834cf1adafd5a1176e61a9875f69a14b8 (patch) | |
tree | f3d93310696ce1eb611732e0346487ebfc63336e /src/game/ObjectMgr.cpp | |
parent | e5088b85221d870efc86f11f6bafac5e9cd76e7b (diff) |
[7674] Fixed check of DB script string ids from `db_script_string` at loading. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index b9b7c0a489d..d3a9fe23395 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -7755,13 +7755,16 @@ 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) { - if(!GetTrinityStringLocale (itrM->second.dataint)) - sLog.outErrorDb( "Table `db_script_string` has not existed string id %u", itrM->first); + case SCRIPT_COMMAND_TALK: + { + if(!GetTrinityStringLocale (itrM->second.dataint)) + 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); + if(ids.count(itrM->second.dataint)) + ids.erase(itrM->second.dataint); + } } } } |