aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Texts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-01-24 15:08:49 +0100
committerShauren <shauren.trinity@gmail.com>2016-01-24 15:08:49 +0100
commit11ad71e2fc322c8e109ffe8cd8c52332a26048bf (patch)
treef687239df163bc312da11e545a57744a7bb4fd10 /src/server/game/Texts
parentd5b0ffbe9b0c07beb8d0dfc52a6532c2da805285 (diff)
Core/Misc: Fixed array out of bounds access when loading locales_achievement_reward, locales_creature_text, locales_gossip_menu_option and skip LOCALE_none when iterating over locales
Diffstat (limited to 'src/server/game/Texts')
-rw-r--r--src/server/game/Texts/CreatureTextMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Texts/CreatureTextMgr.cpp b/src/server/game/Texts/CreatureTextMgr.cpp
index a761d42fa9f..edc9b5a67e6 100644
--- a/src/server/game/Texts/CreatureTextMgr.cpp
+++ b/src/server/game/Texts/CreatureTextMgr.cpp
@@ -185,7 +185,7 @@ void CreatureTextMgr::LoadCreatureTextLocales()
{
Field* fields = result->Fetch();
CreatureTextLocale& loc = mLocaleTextMap[CreatureTextId(fields[0].GetUInt32(), uint32(fields[1].GetUInt8()), uint32(fields[2].GetUInt8()))];
- for (uint8 i = TOTAL_LOCALES - 1; i > 0; --i)
+ for (uint8 i = OLD_TOTAL_LOCALES - 1; i > 0; --i)
{
LocaleConstant locale = LocaleConstant(i);
ObjectMgr::AddLocaleString(fields[3 + i - 1].GetString(), locale, loc.Text);