From a5d106c116d2f4e5c55c91d1a6fe58addf7362b1 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 29 Sep 2016 18:44:48 -0500 Subject: [PATCH] Fix cookoff event calling (#4487) --- addons/cookoff/functions/fnc_cookOff.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/cookoff/functions/fnc_cookOff.sqf b/addons/cookoff/functions/fnc_cookOff.sqf index a9984235dd..dc6438c328 100644 --- a/addons/cookoff/functions/fnc_cookOff.sqf +++ b/addons/cookoff/functions/fnc_cookOff.sqf @@ -20,7 +20,9 @@ params ["_vehicle"]; if (_vehicle getVariable [QGVAR(isCookingOff), false]) exitWith {}; _vehicle setVariable [QGVAR(isCookingOff), true]; -[QGVAR(cookOff), _vehicle] call CBA_fnc_remoteEvent; +if (local _vehicle) then { + [QGVAR(cookOff), _vehicle] call CBA_fnc_remoteEvent; +}; [{ params ["_vehicle"];