From 3adf6d635a3e2ba9c9ad35ec2427d1137867f21f Mon Sep 17 00:00:00 2001 From: ttrebuchon Date: Sun, 13 Aug 2023 15:22:05 -0400 Subject: [PATCH] Handle OPSGROUP:MarkWaypoints() when waypoint altitude is nil --- Moose Development/Moose/Ops/OpsGroup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/OpsGroup.lua b/Moose Development/Moose/Ops/OpsGroup.lua index 594f916ce..6afe0d51e 100644 --- a/Moose Development/Moose/Ops/OpsGroup.lua +++ b/Moose Development/Moose/Ops/OpsGroup.lua @@ -3013,7 +3013,7 @@ function OPSGROUP:MarkWaypoints(Duration) local waypoint=_waypoint --#OPSGROUP.Waypoint local text=string.format("Waypoint ID=%d of %s", waypoint.uid, self.groupname) - text=text..string.format("\nSpeed=%.1f kts, Alt=%d ft (%s)", UTILS.MpsToKnots(waypoint.speed), UTILS.MetersToFeet(waypoint.alt), "BARO") + text=text..string.format("\nSpeed=%.1f kts, Alt=%d ft (%s)", UTILS.MpsToKnots(waypoint.speed), UTILS.MetersToFeet(waypoint.alt or 0), "BARO") if waypoint.marker then if waypoint.marker.text~=text then