Add check so vanilla magazines can't be unloaded

This commit is contained in:
VKing 2016-02-14 14:10:28 +01:00
parent 560c509a3a
commit 74d410688f

View File

@ -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;