Merge branch 'master' into new-netcode

Conflicts:
	Subsurface/Source/Items/CharacterInventory.cs
	Subsurface/Source/Items/Inventory.cs
	Subsurface/Source/Items/Item.cs
This commit is contained in:
Regalis
2016-10-12 21:12:21 +03:00
9 changed files with 89 additions and 19 deletions
+6 -1
View File
@@ -378,7 +378,12 @@ namespace Barotrauma.Items.Components
{
base.RemoveComponentSpecific();
GameMain.World.RemoveBody(body.FarseerBody);
if (body != null)
{
body.Remove();
body = null;
}
if (linkedGap!=null) linkedGap.Remove();