VOID_HUDAdvanced: Worked around a NaN Exception-spam issue.
[VOID.git] / VOID_HUDAdvanced.cs
blob:a/VOID_HUDAdvanced.cs -> blob:b/VOID_HUDAdvanced.cs
--- a/VOID_HUDAdvanced.cs
+++ b/VOID_HUDAdvanced.cs
@@ -631,6 +631,11 @@
 
 			double interval = (node.UT - currentNodeHalfBurnDuration) - Planetarium.GetUniversalTime();
 
+			if (double.IsNaN(interval))
+			{
+				return string.Intern("NaN");
+			}
+
 			int sign = Math.Sign(interval);
 			interval = Math.Abs(interval);