Core/Items: Implemented CreateTime item field and changed refund/soulbound trade timers to also count time offline
Port From (https://github.com/TrinityCore/TrinityCore/commit/69da702b930d43738bcaf49ce57b333dfc19ecfd)
This commit is contained in:
@@ -164,13 +164,13 @@ namespace Game
|
||||
}
|
||||
|
||||
Item item = Item.NewItemOrBag(proto);
|
||||
if (!item.LoadFromDB(itemGuid, ObjectGuid.Create(HighGuid.Player, result.Read<ulong>(51)), result.GetFields(), itemEntry))
|
||||
if (!item.LoadFromDB(itemGuid, ObjectGuid.Create(HighGuid.Player, result.Read<ulong>(52)), result.GetFields(), itemEntry))
|
||||
{
|
||||
item.Dispose();
|
||||
continue;
|
||||
}
|
||||
|
||||
uint auctionId = result.Read<uint>(52);
|
||||
uint auctionId = result.Read<uint>(53);
|
||||
itemsByAuction.Add(auctionId, item);
|
||||
|
||||
++count;
|
||||
|
||||
Reference in New Issue
Block a user