Fixed null exception in IndoordsSteeringManager. Closes #326

This commit is contained in:
Joonas Rikkonen
2018-03-10 18:47:59 +02:00
parent 3f8ead6ad2
commit 276798d88b
@@ -172,7 +172,7 @@ namespace Barotrauma
if ((heightFromFloor > 0.0f && heightFromFloor < collider.height * 1.5f) || if ((heightFromFloor > 0.0f && heightFromFloor < collider.height * 1.5f) ||
(currentPath.NextNode != null && currentPath.NextNode.Ladders != null)) (currentPath.NextNode != null && currentPath.NextNode.Ladders != null))
{ {
if (currentPath.NextNode.Ladders == null) if (currentPath.NextNode != null && currentPath.NextNode.Ladders == null)
{ {
character.AnimController.Anim = AnimController.Animation.None; character.AnimController.Anim = AnimController.Animation.None;
} }