diff options
author | Shauren <shauren.trinity@gmail.com> | 2014-08-15 11:36:11 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2014-08-15 11:36:11 +0200 |
commit | 2fdc4723c2333e5ee9457cf3822bd24c25e71c28 (patch) | |
tree | f3d6cbe40a947f289047ca2b8f73c4b395358205 /src/server/game/Texts/CreatureTextMgr.cpp | |
parent | c212c4fcc3bde1809e58fe1c16d37a29d70ce7bb (diff) |
Core/Misc: Optimized locale loading
Diffstat (limited to 'src/server/game/Texts/CreatureTextMgr.cpp')
-rw-r--r-- | src/server/game/Texts/CreatureTextMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Texts/CreatureTextMgr.cpp b/src/server/game/Texts/CreatureTextMgr.cpp index 8bd7a5a5e71..0412128754c 100644 --- a/src/server/game/Texts/CreatureTextMgr.cpp +++ b/src/server/game/Texts/CreatureTextMgr.cpp @@ -180,7 +180,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 = 1; i < TOTAL_LOCALES; ++i) + for (uint8 i = TOTAL_LOCALES - 1; i > 0; --i) { LocaleConstant locale = LocaleConstant(i); ObjectMgr::AddLocaleString(fields[3 + i - 1].GetString(), locale, loc.Text); |