aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorclick <none@none>2010-05-27 14:13:22 +0200
committerclick <none@none>2010-05-27 14:13:22 +0200
commitac2ac3dbcf56467f85e1b43de38ab8229873af97 (patch)
treedae7aa9b2c885b98f18268d26b62cff2cd456b5d /src
parentae71f23dd69404accbc35d72b540d3a932a97ba6 (diff)
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
Diffstat (limited to 'src')
-rwxr-xr-xsrc/game/AuctionHouseMgr.cpp6
1 files changed, 4 insertions, 2 deletions
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
{