Core/Items: Fixed crash happening when deleting item before it was saved for the first time
Port From (https://github.com/TrinityCore/TrinityCore/commit/3df64ceff4aaada63c598d110156f22dd31f1d2c)
This commit is contained in:
@@ -5431,7 +5431,7 @@ namespace Game.Entities
|
||||
pItem.SetSlot(ItemConst.NullSlot);
|
||||
pItem.SetState(ItemUpdateState.Removed, this);
|
||||
|
||||
if (pItem.GetTemplate().GetInventoryType() != InventoryType.NonEquip)
|
||||
if (pProto.GetInventoryType() != InventoryType.NonEquip)
|
||||
UpdateAverageItemLevelTotal();
|
||||
|
||||
if (bag == InventorySlots.Bag0)
|
||||
|
||||
Reference in New Issue
Block a user