mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-12-15 14:50:44 -08:00
fix(Core/Auctionhouse): Fix auctionhouse searches with locales other than enUS (#21019)
This commit is contained in:
parent
5b37bc5205
commit
0a70ebc3af
1 changed files with 2 additions and 2 deletions
|
|
@ -156,7 +156,7 @@ void AuctionHouseWorkerThread::SearchListRequest(AuctionSearchListRequest const&
|
|||
|
||||
if (!searchListRequest.searchInfo.sorting.empty() && auctionEntries.size() > MAX_AUCTIONS_PER_PAGE)
|
||||
{
|
||||
AuctionSorter sorter(&searchListRequest.searchInfo.sorting, searchListRequest.playerInfo.locdbc_idx);
|
||||
AuctionSorter sorter(&searchListRequest.searchInfo.sorting, searchListRequest.playerInfo.loc_idx);
|
||||
std::sort(auctionEntries.begin(), auctionEntries.end(), sorter);
|
||||
}
|
||||
|
||||
|
|
@ -326,7 +326,7 @@ void AuctionHouseWorkerThread::BuildListAuctionItems(AuctionSearchListRequest co
|
|||
// No need to do any of this if no search term was entered
|
||||
if (!searchRequest.searchInfo.wsearchedname.empty())
|
||||
{
|
||||
if (Aitem.itemName[searchRequest.playerInfo.locdbc_idx].find(searchRequest.searchInfo.wsearchedname) == std::wstring::npos)
|
||||
if (Aitem.itemName[searchRequest.playerInfo.loc_idx].find(searchRequest.searchInfo.wsearchedname) == std::wstring::npos)
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue