[7677] Fixed crash at error report attempt at db_script_string loading.

This commit is contained in:
VladimirMangos 2009-04-17 11:21:58 +04:00
parent 30d8be94ce
commit 650be82030
2 changed files with 2 additions and 2 deletions

View file

@ -7403,7 +7403,7 @@ void ObjectMgr::CheckScripts(ScriptMapMap const& scripts,std::set<int32>& ids)
case SCRIPT_COMMAND_TALK: case SCRIPT_COMMAND_TALK:
{ {
if(!GetMangosStringLocale (itrM->second.dataint)) if(!GetMangosStringLocale (itrM->second.dataint))
sLog.outErrorDb( "Table `db_script_string` not has string id %u used db script (ID: %s)", itrM->second.dataint, itrMM->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)) if(ids.count(itrM->second.dataint))
ids.erase(itrM->second.dataint); ids.erase(itrM->second.dataint);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7676" #define REVISION_NR "7677"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__