From 9d160c855fe950d96386165fe7f6e484b427b89d Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 23 Feb 2009 21:06:41 -0600 Subject: [7329] Fixed CastBarCaption localization data loading from DB. Author: wilibald09 --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 09c0b127118..7807f365a23 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -5472,9 +5472,9 @@ void ObjectMgr::LoadGameObjectLocales() } } - for(int i = MAX_LOCALE; i < MAX_LOCALE*2-1; ++i) + for(int i = 1; i < MAX_LOCALE; ++i) { - std::string str = fields[i].GetCppString(); + std::string str = fields[i+(MAX_LOCALE-1)].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index bbb37f52cf3..f0ea8050dad 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 "7328" + #define REVISION_NR "7329" #endif // __REVISION_NR_H__ -- cgit v1.2.3