From ca2efb713c9aeede52d5cf37cf3c1d7bcd832c56 Mon Sep 17 00:00:00 2001 From: Foks Date: Thu, 4 Feb 2010 23:56:05 +0300 Subject: [PATCH] [9305] Fix load quest locales, after implement CompletedText in 9291, v2.0 Signed-off-by: VladimirMangos --- src/game/ObjectMgr.cpp | 16 ++++++++-------- src/shared/revision_nr.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 5a139c5e9..0b593ac39 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -3974,7 +3974,7 @@ void ObjectMgr::LoadQuestLocales() for(int i = 1; i < MAX_LOCALE; ++i) { - std::string str = fields[1+10*(i-1)].GetCppString(); + std::string str = fields[1+11*(i-1)].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); @@ -3986,7 +3986,7 @@ void ObjectMgr::LoadQuestLocales() data.Title[idx] = str; } } - str = fields[1+10*(i-1)+1].GetCppString(); + str = fields[1+11*(i-1)+1].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); @@ -3998,7 +3998,7 @@ void ObjectMgr::LoadQuestLocales() data.Details[idx] = str; } } - str = fields[1+10*(i-1)+2].GetCppString(); + str = fields[1+11*(i-1)+2].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); @@ -4010,7 +4010,7 @@ void ObjectMgr::LoadQuestLocales() data.Objectives[idx] = str; } } - str = fields[1+10*(i-1)+3].GetCppString(); + str = fields[1+11*(i-1)+3].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); @@ -4022,7 +4022,7 @@ void ObjectMgr::LoadQuestLocales() data.OfferRewardText[idx] = str; } } - str = fields[1+10*(i-1)+4].GetCppString(); + str = fields[1+11*(i-1)+4].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); @@ -4034,7 +4034,7 @@ void ObjectMgr::LoadQuestLocales() data.RequestItemsText[idx] = str; } } - str = fields[1+10*(i-1)+5].GetCppString(); + str = fields[1+11*(i-1)+5].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); @@ -4046,7 +4046,7 @@ void ObjectMgr::LoadQuestLocales() data.EndText[idx] = str; } } - str = fields[1+10*(i-1)+6].GetCppString(); + str = fields[1+11*(i-1)+6].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); @@ -4060,7 +4060,7 @@ void ObjectMgr::LoadQuestLocales() } for(int k = 0; k < 4; ++k) { - str = fields[1+10*(i-1)+7+k].GetCppString(); + str = fields[1+11*(i-1)+7+k].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 0de3af8a1..dd0677b97 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 "9304" + #define REVISION_NR "9305" #endif // __REVISION_NR_H__