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 } ///