From dd07b0fa306da16b541dcaf75db3c9f3a01b12c2 Mon Sep 17 00:00:00 2001 From: Wakbub Date: Sat, 9 Apr 2022 18:50:47 +0000 Subject: [PATCH] Fix Error Type String, expected Array (#8871) Pass an array instead of a string to insert. --- addons/csw/functions/fnc_ai_reload.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/csw/functions/fnc_ai_reload.sqf b/addons/csw/functions/fnc_ai_reload.sqf index 70fd4868ed..fea3f196d0 100644 --- a/addons/csw/functions/fnc_ai_reload.sqf +++ b/addons/csw/functions/fnc_ai_reload.sqf @@ -41,7 +41,7 @@ private _nearSupplies = [_gunner] + ((_staticWeapon nearSupplies 10) select { private _compatibleMags = [_weapon] call CBA_fnc_compatibleMagazines; if (_magazine != "") then { - _compatibleMags insert [0, _magazine]; + _compatibleMags insert [0, [_magazine]]; }; {