From 9d4a0be0db9acef97101d4005105fdf165ad47f9 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 3 Mar 2015 15:09:38 -0600 Subject: [PATCH] FCS - FCSMags could be undefined, and cause probs Shooting the B_apc_tracked_01_rcws_F, veh variables aren't defined and cause problems downstream. 14:40:58 Error in expression 14:40:58 Error position: 14:40:58 Error Type Number,Not a Number, expected Number 14:40:58 File z\ace\addons\common\functions\fnc_changeProjectileDirection.sqf, line 42 --- addons/fcs/functions/fnc_firedEH.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/fcs/functions/fnc_firedEH.sqf b/addons/fcs/functions/fnc_firedEH.sqf index f17693d33e..4c553883e2 100644 --- a/addons/fcs/functions/fnc_firedEH.sqf +++ b/addons/fcs/functions/fnc_firedEH.sqf @@ -30,7 +30,7 @@ if !([_gunner] call EFUNC(common,isPlayer)) exitWith {}; private ["_FCSMagazines", "_FCSElevation", "_offset"]; -_FCSMagazines = _vehicle getVariable format ["%1_%2", QGVAR(Magazines), _turret]; +_FCSMagazines = _vehicle getVariable [(format ["%1_%2", QGVAR(Magazines), _turret]), []]; _FCSElevation = _vehicle getVariable format ["%1_%2", QGVAR(Elevation), _turret]; if !(_magazine in _FCSMagazines) exitWith {};