From 74d410688fb3d30d83c09684aa56644e60db8e8e Mon Sep 17 00:00:00 2001 From: VKing Date: Sun, 14 Feb 2016 14:10:28 +0100 Subject: [PATCH] Add check so vanilla magazines can't be unloaded --- addons/mk6mortar/functions/fnc_canUnloadMagazine.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mk6mortar/functions/fnc_canUnloadMagazine.sqf b/addons/mk6mortar/functions/fnc_canUnloadMagazine.sqf index 8b2fc0d3ed..b1d6593574 100644 --- a/addons/mk6mortar/functions/fnc_canUnloadMagazine.sqf +++ b/addons/mk6mortar/functions/fnc_canUnloadMagazine.sqf @@ -19,7 +19,7 @@ params ["_static","_unit"]; private ["_canUnloadMagazine","_ammoCount"]; -if !(alive _static && GVAR(useAmmoHandling)) exitWith {false}; +if !(alive _static && GVAR(useAmmoHandling) && _static getVariable [QGVAR(initialized),false]) exitWith {false}; _canUnloadMagazine = false; _ammoCount = ((magazinesAllTurrets _static) select 1) select 2;