From 7e418dec791cb71ec4fcf50cf6988fe57077dceb Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Wed, 8 May 2024 10:04:02 +0200 Subject: [PATCH] Update fnc_replaceMagazineCargo.sqf --- addons/disposable/fnc_replaceMagazineCargo.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/disposable/fnc_replaceMagazineCargo.sqf b/addons/disposable/fnc_replaceMagazineCargo.sqf index 147d0413c..023c3e87d 100644 --- a/addons/disposable/fnc_replaceMagazineCargo.sqf +++ b/addons/disposable/fnc_replaceMagazineCargo.sqf @@ -57,6 +57,8 @@ private _isBackpack = getNumber (configOf _box >> "isBackpack") == 1; if (_magazine in GVAR(magazines)) then { private _loadedLauncher = GVAR(MagazineLaunchers) getVariable _magazine; + + // As addWeaponCargoGlobal ignores allowedSlots, check here if launcher is allowed to be placed in a backpack if (!_isBackpack || {_loadedLauncher in GVAR(BackpackLaunchers)}) then { _box addWeaponCargoGlobal [_loadedLauncher, 1]; };