fix(Core/AuctionHouse): fix crash in BuildListAuctionItems (#17222)

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/17150
This commit is contained in:
Kitzunu 2023-09-09 04:09:35 +02:00 committed by GitHub
parent 8d08a861aa
commit f6d11d526b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -761,6 +761,9 @@ bool AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player
}
AuctionEntry* Aentry = itr->second;
if (!Aentry)
return false;
// Skip expired auctions
if (Aentry->expire_time < curTime.count())
{