1
0
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:
nordsoft 2022-12-17 21:44:53 +04:00 committed by Nordsoft91
parent 91dc34465e
commit dd95d92735

View File

@ -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);
}