diff --git a/Source/Survey/Points.cs b/Source/Survey/Points.cs index f5355656..67a57f0a 100644 --- a/Source/Survey/Points.cs +++ b/Source/Survey/Points.cs @@ -45,8 +45,11 @@ public Points (SurveySite site) center = Vector3d.zero; foreach (var stake in site) { + if (stake.stake == null) { + continue; + } string key = ELSurveyStake.StakeUses[stake.use]; - var pos = stake.vessel.GetWorldPos3D (); + var pos = stake.stake.part.transform.position; center += pos; count++;