[9305] Fix load quest locales, after implement CompletedText in 9291, v2.0

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Foks 2010-02-04 23:56:05 +03:00 committed by VladimirMangos
parent 07e699b8d3
commit ca2efb713c
2 changed files with 9 additions and 9 deletions

View file

@ -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));