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
This commit is contained in:
click
2010-05-27 14:13:22 +02:00
parent ae71f23dd6
commit ac2ac3dbcf

View File

@@ -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
{