version check handle minor versions below 10

This commit is contained in:
commy2 2019-03-16 11:05:01 +01:00
parent f248e81c65
commit df8b23b9ba

View File

@ -10,7 +10,7 @@ private _files = CBA_common_addons select {
private _versions = [];
{
getText (configFile >> "CfgPatches" >> _x >> "version") splitString "." params ["_major", "_minor"];
getText (configFile >> "CfgPatches" >> _x >> "version") splitString "." params [["_major", "0"], ["_minor", "0"]];
private _version = parseNumber _major + parseNumber _minor/100;
_versions set [_forEachIndex, _version];
} forEach _files;