[10617] Fixed array access in SCRIPT_COMMAND_TALK loading check.

This commit is contained in:
VladimirMangos 2010-10-18 04:54:49 +04:00
parent c4ddbead04
commit d3c1780f55
2 changed files with 2 additions and 2 deletions

View file

@ -4453,7 +4453,7 @@ void ObjectMgr::LoadScripts(ScriptMapMap& scripts, char const* tablename)
} }
if (tmp.talk.textId[0] == 0) if (tmp.talk.textId[0] == 0)
{ {
sLog.outErrorDb("Table `%s` has invalid talk text id (dataint = %i) in SCRIPT_COMMAND_TALK for script id %u", tablename, tmp.talk.textId, tmp.id); sLog.outErrorDb("Table `%s` has invalid talk text id (dataint = %i) in SCRIPT_COMMAND_TALK for script id %u", tablename, tmp.talk.textId[0], tmp.id);
continue; continue;
} }

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 "10616" #define REVISION_NR "10617"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__