chore(Core/AH): update auction house files after cache update (#9244)

This commit is contained in:
Skjalf
2021-11-18 14:48:31 -03:00
committed by GitHub
parent ecb6d00b4d
commit 55d17c1c53

View File

@@ -137,10 +137,10 @@ static bool SortAuction(AuctionEntry* left, AuctionEntry* right, AuctionSortOrde
case AUCTION_SORT_OWNER:
{
std::string leftName;
sObjectMgr->GetPlayerNameByGUID(left->owner.GetCounter(), leftName);
sCharacterCache->GetCharacterNameByGuid(left->owner, leftName);
std::string rightName;
sObjectMgr->GetPlayerNameByGUID(right->owner.GetCounter(), rightName);
sCharacterCache->GetCharacterNameByGuid(right->owner, rightName);
int result = leftName.compare(rightName);
if (result == 0)