Removing items from their parent inventory in item.Drop

This commit is contained in:
Regalis
2017-01-31 20:11:19 +02:00
parent 0cd2d7a0b9
commit b8263d6a90
2 changed files with 12 additions and 1 deletions

View File

@@ -564,6 +564,7 @@ namespace Barotrauma
if (newItemIDs[i] == 0)
{
if (Items[i] != null) Items[i].Drop();
System.Diagnostics.Debug.Assert(Items[i]==null);
}
else
{