From ceb0755982703f810d1cb5d519837273e5e6c44c Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 12 Mar 2020 11:56:47 -0500 Subject: [PATCH 1/2] createPerFrameHandlerObject - remove pfeh if location deleted --- addons/common/fnc_createPerFrameHandlerObject.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/common/fnc_createPerFrameHandlerObject.sqf b/addons/common/fnc_createPerFrameHandlerObject.sqf index d0bafd09d..447f351b7 100644 --- a/addons/common/fnc_createPerFrameHandlerObject.sqf +++ b/addons/common/fnc_createPerFrameHandlerObject.sqf @@ -102,7 +102,7 @@ private _handle = [{ params ["_logic"]; if (isNil "_logic" || {isNull _logic}) exitWith { - (_logic getVariable "handle") call CBA_fnc_removePerFrameHandler; + [_this # 1] call CBA_fnc_removePerFrameHandler; }; // deserialize From 686ca7c0e47b94bc8868450f6b88e2da60be9cc6 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 13 Mar 2020 09:53:29 -0500 Subject: [PATCH 2/2] Update addons/common/fnc_createPerFrameHandlerObject.sqf Co-Authored-By: commy2 --- addons/common/fnc_createPerFrameHandlerObject.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/common/fnc_createPerFrameHandlerObject.sqf b/addons/common/fnc_createPerFrameHandlerObject.sqf index 447f351b7..39432d177 100644 --- a/addons/common/fnc_createPerFrameHandlerObject.sqf +++ b/addons/common/fnc_createPerFrameHandlerObject.sqf @@ -102,7 +102,7 @@ private _handle = [{ params ["_logic"]; if (isNil "_logic" || {isNull _logic}) exitWith { - [_this # 1] call CBA_fnc_removePerFrameHandler; + (_this select 1) call CBA_fnc_removePerFrameHandler; }; // deserialize