From 7da977a4e3b75df4797bdc7314052916602fbfbc Mon Sep 17 00:00:00 2001 From: "Rutger \"RedBery\" Meijering" Date: Mon, 15 Jun 2020 16:52:14 +0200 Subject: [PATCH] Fixes some magazines not being found leading to duplication (#7760) --- addons/rearm/functions/fnc_setTurretMagazineAmmo.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/rearm/functions/fnc_setTurretMagazineAmmo.sqf b/addons/rearm/functions/fnc_setTurretMagazineAmmo.sqf index c2abe8a1328..a8b83c723aa 100644 --- a/addons/rearm/functions/fnc_setTurretMagazineAmmo.sqf +++ b/addons/rearm/functions/fnc_setTurretMagazineAmmo.sqf @@ -57,7 +57,7 @@ if (!_magLoadedInWeapon) then { * To prevent that, we must remove all magazines that would fit into the weapon and then add * them back with the magazine-to-be-loaded being the first. */ - private _allowedMagClassesInWeapon = [_loadedWeapon] call CBA_fnc_compatibleMagazines; + private _allowedMagClassesInWeapon = [_loadedWeapon, true] call CBA_fnc_compatibleMagazines; /* Current ammo counts of all allowed magazine classes in weapon. * Example: [["8Rnd_82mm_Mo_shells", [8, 8, 2]], ["8Rnd_82mm_Mo_Flare_white", [7]]] */