Fixed a bunch of sprites not being removed

This commit is contained in:
Regalis
2016-02-19 15:58:43 +02:00
parent c59a2b5207
commit 9cfbbb44ed
16 changed files with 68 additions and 30 deletions

View File

@@ -247,9 +247,9 @@ namespace Barotrauma.Items.Components
itemIds = null;
}
public override void Remove()
protected override void RemoveComponentSpecific()
{
base.Remove();
base.RemoveComponentSpecific();
foreach (Item item in Inventory.Items)
{