From ac2ac3dbcf56467f85e1b43de38ab8229873af97 Mon Sep 17 00:00:00 2001 From: click Date: Thu, 27 May 2010 14:13:22 +0200 Subject: Change auctionhousesearches with extended itemnames (of the hawk etc) to use the DBC-locale, not the DB-locale Major thanks to D_Skywalk for figuring out the bug --HG-- branch : trunk --- src/game/AuctionHouseMgr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/AuctionHouseMgr.cpp b/src/game/AuctionHouseMgr.cpp index d1223a62314..ddd44bbefa2 100755 --- a/src/game/AuctionHouseMgr.cpp +++ b/src/game/AuctionHouseMgr.cpp @@ -583,6 +583,7 @@ void AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player uint32& count, uint32& totalcount) { int loc_idx = player->GetSession()->GetSessionDbLocaleIndex(); + int locdbc_idx = player->GetSession()->GetSessionDbcLocale(); for (AuctionEntryMap::const_iterator itr = AuctionsMap.begin(); itr != AuctionsMap.end(); ++itr) { @@ -647,13 +648,14 @@ void AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player char* const* temp = itemRandProp->nameSuffix; //char* temp = itemRandProp->nameSuffix; + // dbc local name if (temp) { - if (loc_idx >= 0) + if (locdbc_idx >= 0) { // Append the suffix (ie: of the Monkey) to the name using localization name += " "; - name += temp[loc_idx]; + name += temp[locdbc_idx]; } else { -- cgit v1.2.3