Skip to content

Commit fc12342

Browse files
committed
fix NRE when targeting body
(from new orbit render changes)
1 parent 1ee74de commit fc12342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RasterPropMonitor/Handlers/JSIOrbitDisplay.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ public bool RenderOrbit(RenderTexture screen, float cameraAspect)
623623
DrawIcon(transformedPosition.x, transformedPosition.y, VesselType.Unknown, iconColorClosestApproachValue, MapIcons.OtherIcon.SHIPATINTERCEPT);
624624
}
625625

626-
if (!targetVessel.LandedOrSplashed)
626+
if (targetVessel == null || !targetVessel.LandedOrSplashed)
627627
{
628628
// Unconditionally try to draw the closest approach point on
629629
// the target orbit.

0 commit comments

Comments
 (0)