Skip to content

Commit

Permalink
reflect IS_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
Rynchodon committed Jan 27, 2017
1 parent e3d97d8 commit d90a0b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Loader/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -38,7 +37,6 @@ public Version(FileVersionInfo info, bool allBuilds)
StableBuild = false;
UnstableBuild = true;
}
#pragma warning restore CS0162
}

/// <summary>
Expand Down

0 comments on commit d90a0b7

Please sign in to comment.