Skip to content

Commit

Permalink
Fall back to newly added mod's version instead of empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Oct 14, 2017
1 parent 0e5aa56 commit 20e4e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GUI/GUIMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public GUIMod(CkanModule mod, IRegistryQuerier registry, KspVersionCriteria curr
// KSP.
if (latestAvailableForAnyVersion != null)
{
KSPCompatibility = KSPCompatibilityLong = registry.LatestCompatibleKSP(mod.identifier)?.ToString() ?? "";
KSPCompatibility = KSPCompatibilityLong = registry.LatestCompatibleKSP(mod.identifier)?.ToString() ?? mod.LatestCompatibleKSP().ToString();

// If the mod we have installed is *not* the mod we have installed, or we don't know
// what we have installed, indicate that an upgrade would be needed.
Expand Down

0 comments on commit 20e4e91

Please sign in to comment.