diff options
| author | Chazy Chaz <ChazyTheBest@hotmail.es> | 2017-04-18 13:06:09 +0200 |
|---|---|---|
| committer | Aokromes <Aokromes@users.noreply.github.com> | 2017-04-18 13:06:09 +0200 |
| commit | fbbe247114d092be1d20768419608bfa9cc57608 (patch) | |
| tree | 105acf87cb2c1a9cb521590cb19d32c77380c7e9 /src/server/game/AuctionHouse/AuctionHouseMgr.cpp | |
| parent | db0da2cf5c18522a8f165991b2025f6c4943b77b (diff) | |
Core/Misc: Sync database schema with master
Diffstat (limited to 'src/server/game/AuctionHouse/AuctionHouseMgr.cpp')
| -rw-r--r-- | src/server/game/AuctionHouse/AuctionHouseMgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp index 7976b38f37c..a6ff7f558a7 100644 --- a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp +++ b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp @@ -682,7 +682,7 @@ void AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player uint32 inventoryType, uint32 itemClass, uint32 itemSubClass, uint32 quality, uint32& count, uint32& totalcount, bool getall) { - int loc_idx = player->GetSession()->GetSessionDbLocaleIndex(); + LocaleConstant localeConstant = player->GetSession()->GetSessionDbLocaleIndex(); int locdbc_idx = player->GetSession()->GetSessionDbcLocale(); time_t curTime = GameTime::GetGameTime(); @@ -754,9 +754,9 @@ void AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player continue; // local name - if (loc_idx >= 0) + if (localeConstant >= LOCALE_enUS) if (ItemLocale const* il = sObjectMgr->GetItemLocale(proto->ItemId)) - ObjectMgr::GetLocaleString(il->Name, loc_idx, name); + ObjectMgr::GetLocaleString(il->Name, localeConstant, name); // DO NOT use GetItemEnchantMod(proto->RandomProperty) as it may return a result // that matches the search but it may not equal item->GetItemRandomPropertyId() |
