mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
Fix crash at startUp due to command localization loading
The crash was due to MAX_LOCALE = 9 in Mangos One compared to MAX_LOCALE = 8 in mangos Zero
This commit is contained in:
parent
64e1346ce5
commit
92b81ca596
1 changed files with 3 additions and 3 deletions
|
|
@ -70,7 +70,7 @@ void CommandMgr::LoadCommandHelpLocale()
|
|||
uint32 commandId = fields[0].GetUInt32(); // to assign with db data
|
||||
|
||||
CommandHelpLocale& data = m_CommandHelpLocaleMap[commandId];
|
||||
for (int i = 1; i <= MAX_LOCALE; ++i)
|
||||
for (int i = 1; i < MAX_LOCALE; ++i)
|
||||
{
|
||||
std::string str = fields[i].GetCppString();
|
||||
if (!str.empty())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue