mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[8951] Fixed loading locales_gossip_menu_option.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
e150887b86
commit
d604b0a120
2 changed files with 3 additions and 3 deletions
|
|
@ -376,7 +376,7 @@ void ObjectMgr::LoadGossipMenuItemsLocales()
|
||||||
|
|
||||||
for(int i = 1; i < MAX_LOCALE; ++i)
|
for(int i = 1; i < MAX_LOCALE; ++i)
|
||||||
{
|
{
|
||||||
std::string str = fields[1+2*(i-1)].GetCppString();
|
std::string str = fields[2+2*(i-1)].GetCppString();
|
||||||
if(!str.empty())
|
if(!str.empty())
|
||||||
{
|
{
|
||||||
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
int idx = GetOrNewIndexForLocale(LocaleConstant(i));
|
||||||
|
|
@ -388,7 +388,7 @@ void ObjectMgr::LoadGossipMenuItemsLocales()
|
||||||
data.OptionText[idx] = str;
|
data.OptionText[idx] = str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
str = fields[1+2*(i-1)+1].GetCppString();
|
str = fields[2+2*(i-1)+1].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 "8950"
|
#define REVISION_NR "8951"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue