mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Fix compatibility check
This commit is contained in:
parent
91dc34465e
commit
dd95d92735
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user