Browse Source

Fix compatibility check

nordsoft 2 years ago
parent
commit
dd95d92735
1 changed files with 1 additions and 1 deletions
  1. 1 1
      launcher/modManager/cmodlist.cpp

+ 1 - 1
launcher/modManager/cmodlist.cpp

@@ -31,7 +31,7 @@ bool isCompatible(const QString & verMin, const QString & verMax)
 		if(ver.segmentCount() < maxSections)
 		{
 			auto segments = ver.segments();
-			for(int i = segments.size() - 1; i < maxSections; ++i)
+			for(int i = segments.size(); i < maxSections; ++i)
 				segments.append(0);
 			ver = QVersionNumber(segments);
 		}