Skip to content

Commit

Permalink
Core/DB: Fixed CastBarCaption localization data loading from DB
Browse files Browse the repository at this point in the history
Co-Authored-By: Crypticaz <crypticaz@users.noreply.github.com>
  • Loading branch information
AbraKabastard and Crypticaz committed May 22, 2019
1 parent 768674d commit 14a7882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/ObjectMgr.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5802,9 +5802,9 @@ void ObjectMgr::LoadGameObjectLocales()
} }
} }


for (uint8 i = MAX_LOCALE; i < MAX_LOCALE * 2 - 1; ++i) for (uint8 i = 1; i < MAX_LOCALE; ++i)
{ {
std::string str = fields[i].GetCppString(); std::string str = fields[i + (MAX_LOCALE - 1)].GetCppString();
if (!str.empty()) if (!str.empty())
{ {
int idx = GetOrNewIndexForLocale(LocaleConstant(i)); int idx = GetOrNewIndexForLocale(LocaleConstant(i));
Expand Down

0 comments on commit 14a7882

Please sign in to comment.