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; }; }; }]; 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;