mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user