From d3c1780f5596c0405d84ebbe1878db5593a5929b Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 18 Oct 2010 04:54:49 +0400 Subject: [PATCH] [10617] Fixed array access in SCRIPT_COMMAND_TALK loading check. --- src/game/ObjectMgr.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 42570d6b3..6c1ea457a 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -4453,7 +4453,7 @@ void ObjectMgr::LoadScripts(ScriptMapMap& scripts, char const* tablename) } 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; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 9bd57889b..0315c4762 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10616" + #define REVISION_NR "10617" #endif // __REVISION_NR_H__