Added some null checks

This commit is contained in:
Joonas Rikkonen
2017-06-05 18:40:25 +03:00
parent 892d28fd39
commit acad7980f2
3 changed files with 10 additions and 3 deletions
+4 -1
View File
@@ -52,7 +52,10 @@ namespace Barotrauma
foreach (Limb limb in AnimController.Limbs)
{
limb.body.Enabled = enabled;
if (limb.body != null)
{
limb.body.Enabled = enabled;
}
}
AnimController.Collider.Enabled = value;
}