Core/Misc: Fix various crashes, also related to multithreading
Port From (https://github.com/TrinityCore/TrinityCore/commit/ad008c43b75080ec59aa973f1e2e4424332c34a4)
This commit is contained in:
@@ -1525,6 +1525,10 @@ namespace Game.Entities
|
||||
stmt.AddValue(2, GetGUID().GetCounter());
|
||||
trans.Append(stmt);
|
||||
|
||||
RemoveTradeableItem(item);
|
||||
RemoveEnchantmentDurationsReferences(item);
|
||||
RemoveItemDurations(item);
|
||||
|
||||
// also THIS item should be somewhere else, cheat attempt
|
||||
item.FSetState(ItemUpdateState.Removed); // we are IN updateQueue right now, can't use SetState which modifies the queue
|
||||
DeleteRefundReference(item.GetGUID());
|
||||
|
||||
Reference in New Issue
Block a user