Skip to content

Commit

Permalink
Null protect GetTacticalManager
Browse files Browse the repository at this point in the history
  • Loading branch information
perkinslr committed Dec 18, 2023
1 parent 984834c commit bb8501a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CombatExtended/CombatExtended/CE_Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ public static Bounds GetBoundsFor(Thing thing)
CollisionVertical height;
if (thing is Pawn pawn)
{
height = pawn.GetTacticalManager().Collision;
height = pawn.GetTacticalManager()?.Collision ?? new CollisionVertical(thing);
}
else
{
Expand Down

0 comments on commit bb8501a

Please sign in to comment.