Fix Error Type String, expected Array (#8871)

Pass an array instead of a string to insert.
This commit is contained in:
Wakbub 2022-04-09 18:50:47 +00:00 committed by GitHub
parent 3b79693717
commit dd07b0fa30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]];
};
{