VOID_HUDAdvanced: NaN handling for burntime strvalues.
[VOID.git] / VOID_HUDAdvanced.cs
blob:a/VOID_HUDAdvanced.cs -> blob:b/VOID_HUDAdvanced.cs
--- a/VOID_HUDAdvanced.cs
+++ b/VOID_HUDAdvanced.cs
@@ -590,6 +590,11 @@
 
 			double interval = (node.UT - currentNodeBurnDuration) - Planetarium.GetUniversalTime();
 
+			if (double.IsNaN(interval))
+			{
+				return string.Intern("NaN");
+			}
+
 			int sign = Math.Sign(interval);
 			interval = Math.Abs(interval);