Arsenal - Fix script error for weapons with 3+ muzzles (#7256)

This commit is contained in:
PabstMirror 2019-10-29 17:10:03 -05:00 committed by GitHub
parent 691e8d24c6
commit 0e485ce5fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ private _compatibleMagazines = [[[], []], [[], []], [[], []]];
private _index = _forEachIndex;
{
private _subIndex = _forEachIndex;
private _subIndex = _forEachIndex min 1;
{
((_compatibleMagazines select _index) select _subIndex) pushBackUnique (configName (configFile >> "CfgMagazines" >> _x))
} foreach ([getArray (_weaponConfig >> _x >> "magazines"), getArray (_weaponConfig >> "magazines")] select (_x == "this"));