mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9305] Fix load quest locales, after implement CompletedText in 9291, v2.0
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
07e699b8d3
commit
ca2efb713c
2 changed files with 9 additions and 9 deletions
|
|
@ -3974,7 +3974,7 @@ void ObjectMgr::LoadQuestLocales()
|
||||||
|
|
||||||
for(int i = 1; i < MAX_LOCALE; ++i)
|
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())
|
if(!str.empty())
|
||||||
{
|
{
|
||||||
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
||||||
|
|
@ -3986,7 +3986,7 @@ void ObjectMgr::LoadQuestLocales()
|
||||||
data.Title[idx] = str;
|
data.Title[idx] = str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
str = fields[1+10*(i-1)+1].GetCppString();
|
str = fields[1+11*(i-1)+1].GetCppString();
|
||||||
if(!str.empty())
|
if(!str.empty())
|
||||||
{
|
{
|
||||||
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
||||||
|
|
@ -3998,7 +3998,7 @@ void ObjectMgr::LoadQuestLocales()
|
||||||
data.Details[idx] = str;
|
data.Details[idx] = str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
str = fields[1+10*(i-1)+2].GetCppString();
|
str = fields[1+11*(i-1)+2].GetCppString();
|
||||||
if(!str.empty())
|
if(!str.empty())
|
||||||
{
|
{
|
||||||
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
||||||
|
|
@ -4010,7 +4010,7 @@ void ObjectMgr::LoadQuestLocales()
|
||||||
data.Objectives[idx] = str;
|
data.Objectives[idx] = str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
str = fields[1+10*(i-1)+3].GetCppString();
|
str = fields[1+11*(i-1)+3].GetCppString();
|
||||||
if(!str.empty())
|
if(!str.empty())
|
||||||
{
|
{
|
||||||
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
||||||
|
|
@ -4022,7 +4022,7 @@ void ObjectMgr::LoadQuestLocales()
|
||||||
data.OfferRewardText[idx] = str;
|
data.OfferRewardText[idx] = str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
str = fields[1+10*(i-1)+4].GetCppString();
|
str = fields[1+11*(i-1)+4].GetCppString();
|
||||||
if(!str.empty())
|
if(!str.empty())
|
||||||
{
|
{
|
||||||
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
||||||
|
|
@ -4034,7 +4034,7 @@ void ObjectMgr::LoadQuestLocales()
|
||||||
data.RequestItemsText[idx] = str;
|
data.RequestItemsText[idx] = str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
str = fields[1+10*(i-1)+5].GetCppString();
|
str = fields[1+11*(i-1)+5].GetCppString();
|
||||||
if(!str.empty())
|
if(!str.empty())
|
||||||
{
|
{
|
||||||
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
||||||
|
|
@ -4046,7 +4046,7 @@ void ObjectMgr::LoadQuestLocales()
|
||||||
data.EndText[idx] = str;
|
data.EndText[idx] = str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
str = fields[1+10*(i-1)+6].GetCppString();
|
str = fields[1+11*(i-1)+6].GetCppString();
|
||||||
if(!str.empty())
|
if(!str.empty())
|
||||||
{
|
{
|
||||||
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
||||||
|
|
@ -4060,7 +4060,7 @@ void ObjectMgr::LoadQuestLocales()
|
||||||
}
|
}
|
||||||
for(int k = 0; k < 4; ++k)
|
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())
|
if(!str.empty())
|
||||||
{
|
{
|
||||||
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9304"
|
#define REVISION_NR "9305"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue