Default build version to 0 if it's not defined

This commit is contained in:
ghorsington committed 2020-12-06 22:31:21 +02:00
1 parent 7d4bc5ddf4
commit 0d6c8057d6
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ namespace BepInEx
{
var longVersion = new System.Version(version);
return new SemVer.Version(longVersion.Major, longVersion.Minor, longVersion.Build);
return new SemVer.Version(longVersion.Major, longVersion.Minor, longVersion.Build != -1 ? longVersion.Build : 0);
}
catch { }