Skip to content

Commit

Permalink
Fix Error Type String, expected Array (#8871)
Browse files Browse the repository at this point in the history
Pass an array instead of a string to insert.
  • Loading branch information
Wakbub authored Apr 9, 2022
1 parent 3b79693 commit dd07b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/csw/functions/fnc_ai_reload.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
};

{
Expand Down

0 comments on commit dd07b0f

Please sign in to comment.