From 76eea8924f0468c90fed5546ce04e1f960be202a Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sat, 12 Nov 2016 16:37:41 -0600 Subject: [PATCH] Invert logic for isRefueling --- addons/refuel/functions/fnc_maxDistanceDropNozzle.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/refuel/functions/fnc_maxDistanceDropNozzle.sqf b/addons/refuel/functions/fnc_maxDistanceDropNozzle.sqf index 687af9e072..2a23b5eb99 100644 --- a/addons/refuel/functions/fnc_maxDistanceDropNozzle.sqf +++ b/addons/refuel/functions/fnc_maxDistanceDropNozzle.sqf @@ -33,7 +33,8 @@ if (_nozzle getVariable [QGVAR(jerryCan), false]) exitWith {}; ["_nozzle", (_args select 0) getVariable [QGVAR(nozzle), objNull], [objNull]] ]; - if (_unit getVariable [QGVAR(isRefueling), false]) exitWith { + if (!(_unit getVariable [QGVAR(isRefueling), false])) exitWith { + TRACE_1("player not isRefueling",_unit); [_pfID] call CBA_fnc_removePerFrameHandler; };