From d90a0b73e92c26cd10259880bea12fac4dc1f020 Mon Sep 17 00:00:00 2001 From: Rynchodon Date: Fri, 27 Jan 2017 16:40:14 -0500 Subject: [PATCH] reflect IS_STABLE --- Loader/Version.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Loader/Version.cs b/Loader/Version.cs index 862c863..0b33f6a 100644 --- a/Loader/Version.cs +++ b/Loader/Version.cs @@ -27,8 +27,7 @@ public Version(FileVersionInfo info, bool allBuilds) { StableBuild = UnstableBuild = true; } -#pragma warning disable CS0162 - else if (MyFinalBuildConstants.IS_STABLE) + else if ((bool)typeof(MyFinalBuildConstants).GetField("IS_STABLE").GetValue(null)) { StableBuild = true; UnstableBuild = false; @@ -38,7 +37,6 @@ public Version(FileVersionInfo info, bool allBuilds) StableBuild = false; UnstableBuild = true; } -#pragma warning restore CS0162 } ///