All remaining physics bodies are removed at the end of submarine unloading (freeing debug bodyShapeTextures, etc). -> LevelTrigger bodies don't have to be removed separately during unloading

This commit is contained in:
Joonas Rikkonen
2017-08-24 20:30:10 +03:00
parent 65094a02c1
commit 1a12f46708
3 changed files with 17 additions and 4 deletions
@@ -1153,8 +1153,8 @@ namespace Barotrauma
}
Item.ItemList.Clear();
}
PhysicsBody.list.Clear();
PhysicsBody.RemoveAll();
Ragdoll.list.Clear();