Entity removal fixes

This commit is contained in:
Regalis
2016-11-14 17:52:26 +02:00
parent b86231170f
commit 335bf00890
5 changed files with 44 additions and 7 deletions
@@ -2142,6 +2142,8 @@ namespace Barotrauma
if (aiTarget != null) aiTarget.Remove();
if (Lights.LightManager.ViewTarget == this) Lights.LightManager.ViewTarget = null;
if (AnimController!=null) AnimController.Remove();
}