diff options
| author | linencloth <none@none> | 2010-09-17 19:55:54 +0200 |
|---|---|---|
| committer | linencloth <none@none> | 2010-09-17 19:55:54 +0200 |
| commit | 19a76020bc2083bf127f8579a694c66c4d4c64c5 (patch) | |
| tree | 7e65b20acd28d607abac1a482f1f0495d731ccf9 /src/server/game/Chat/Chat.cpp | |
| parent | 8622446ab909467632c54dfbd475d1bfcfe20fe1 (diff) | |
Core: more cleanup at locale handling.
Also fixes some problems mainly with non English languages.
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Chat/Chat.cpp')
| -rw-r--r-- | src/server/game/Chat/Chat.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp index bbc4c5c4f76..3c5793ae543 100644 --- a/src/server/game/Chat/Chat.cpp +++ b/src/server/game/Chat/Chat.cpp @@ -1678,9 +1678,8 @@ valid examples: ItemLocale const *il = sObjectMgr.GetItemLocale(linkedItem->ItemId); bool foundName = false; - for (uint8 i = LOCALE_koKR; i < MAX_LOCALE; ++i) + for (uint8 dbIndex = LOCALE_koKR; dbIndex < MAX_LOCALE; ++dbIndex) { - int8 dbIndex = sObjectMgr.GetIndexForLocale(LocaleConstant(i)); if (dbIndex == -1 || il == NULL || uint8(dbIndex) >= il->Name.size()) // using strange database/client combinations can lead to this case expectedName = linkedItem->Name1; @@ -1689,7 +1688,7 @@ valid examples: if (suffix) { expectedName += " "; - expectedName += suffix[i]; + expectedName += suffix[dbIndex]; } if (expectedName == buffer) { |
