From e72507046c6656607874f6e6d7d36e1beded1322 Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Sun, 24 Nov 2024 12:59:53 +0100 Subject: [PATCH 1/2] Update fnc_init.sqf --- addons/xeh/fnc_init.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/xeh/fnc_init.sqf b/addons/xeh/fnc_init.sqf index 6025e6054..1c2ac1e00 100644 --- a/addons/xeh/fnc_init.sqf +++ b/addons/xeh/fnc_init.sqf @@ -39,8 +39,8 @@ if !(ISINITIALIZED(_object)) then { if (SLX_XEH_MACHINE select 8) then { [{ { - [_object] call _x; - } forEach (_object getVariable QGVAR(initPost)); + [_this] call _x; + } forEach (_this getVariable QGVAR(initPost)); }, _object] call CBA_fnc_execNextFrame; } else { GVAR(initPostStack) pushBack _object; From c2d5907f6e917dead3645eaa34da95f42ef51e9c Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 24 Nov 2024 14:11:38 -0600 Subject: [PATCH 2/2] also fix var in `cba_ui_fnc_openItemContextMenu` --- addons/ui/fnc_openItemContextMenu.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/ui/fnc_openItemContextMenu.sqf b/addons/ui/fnc_openItemContextMenu.sqf index 12d9f49e7..b6e31bc69 100644 --- a/addons/ui/fnc_openItemContextMenu.sqf +++ b/addons/ui/fnc_openItemContextMenu.sqf @@ -135,7 +135,7 @@ _list setVariable [QFUNC(activate), { // Keep focus to prevent auto closing. ctrlSetFocus _list; } else { - [{ctrlDelete _args}, _list] call CBA_fnc_execNextFrame; + [{ctrlDelete _this}, _list] call CBA_fnc_execNextFrame; }; }; }];