Skip to content

Commit

Permalink
Check for actual version equality in AVC transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Jun 28, 2019
1 parent 6b25859 commit d67ef63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Netkan/Transformers/AvcTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public static void ApplyVersions(JObject json, AvcVersion avc)
if (kspMin != null && kspMax != null)
{
// If we have both a minimum and maximum KSP version...
if (kspMin.CompareTo(kspMax) == 0)
if (kspMin.Equals(kspMax))
{
// ...and they are equal, then just set ksp_version
json["ksp_version"] = kspMin.ToString();
Expand Down

0 comments on commit d67ef63

Please sign in to comment.