Core/Items: Implemented CreateTime item field and changed refund/soulbound trade timers to also count time offline

This commit is contained in:
Shauren
2024-04-12 00:18:20 +02:00
parent 8c274a8e8d
commit 69da702b93
10 changed files with 115 additions and 128 deletions

View File

@@ -529,12 +529,12 @@ void AuctionHouseMgr::LoadAuctions()
}
Item* item = NewItemOrBag(proto);
if (!item->LoadFromDB(itemGuid, ObjectGuid::Create<HighGuid::Player>(fields[51].GetUInt64()), fields, itemEntry))
if (!item->LoadFromDB(itemGuid, ObjectGuid::Create<HighGuid::Player>(fields[52].GetUInt64()), fields, itemEntry))
{
delete item;
continue;
}
uint32 auctionId = fields[52].GetUInt32();
uint32 auctionId = fields[53].GetUInt32();
itemsByAuction[auctionId].push_back(item);
++count;