From 4df561e13af85bacf2b55b1c04020b69946d8bb0 Mon Sep 17 00:00:00 2001 From: esteldunedain Date: Tue, 8 Mar 2016 00:28:44 -0300 Subject: [PATCH] Fix airburst ammo when the ACE_FCS is not enabled (the code is not reached anyway) --- 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 1fbc16116e..dbfebae025 100644 --- a/addons/fcs/functions/fnc_firedEH.sqf +++ b/addons/fcs/functions/fnc_firedEH.sqf @@ -64,7 +64,7 @@ if (vectorMagnitude velocity _vehicle > 2) then { if (!local _gunner) exitWith {}; if (getNumber (configFile >> "CfgAmmo" >> _ammo >> QGVAR(Airburst)) == 1) then { - private _zeroing = _vehicle getVariable [format ["%1_%2", QGVAR(Distance), _turret], currentZeroing _vehicle]; + private _zeroing = _vehicle getVariable [format ["%1_%2", QGVAR(Distance), _turret], currentZeroing _gunner]; if (_zeroing < 50) exitWith {}; if (_zeroing > 1500) exitWith {};