From 0e485ce5fc39c88960ceeb853bcaada6fa0010a7 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 29 Oct 2019 17:10:03 -0500 Subject: [PATCH] Arsenal - Fix script error for weapons with 3+ muzzles (#7256) --- addons/arsenal/functions/fnc_fillRightPanel.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/arsenal/functions/fnc_fillRightPanel.sqf b/addons/arsenal/functions/fnc_fillRightPanel.sqf index a5f60c593c..626afecc3d 100644 --- a/addons/arsenal/functions/fnc_fillRightPanel.sqf +++ b/addons/arsenal/functions/fnc_fillRightPanel.sqf @@ -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"));