diff --git a/Barotrauma/BarotraumaShared/Source/Characters/AI/IndoorsSteeringManager.cs b/Barotrauma/BarotraumaShared/Source/Characters/AI/IndoorsSteeringManager.cs index 97990978f..7427c8e85 100644 --- a/Barotrauma/BarotraumaShared/Source/Characters/AI/IndoorsSteeringManager.cs +++ b/Barotrauma/BarotraumaShared/Source/Characters/AI/IndoorsSteeringManager.cs @@ -172,7 +172,7 @@ namespace Barotrauma if ((heightFromFloor > 0.0f && heightFromFloor < collider.height * 1.5f) || (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; }