Skip to content

Commit

Permalink
Merge pull request #1719 from johnb432/fix-initpost
Browse files Browse the repository at this point in the history
Fix XEH `initPost`
  • Loading branch information
PabstMirror authored Nov 25, 2024
2 parents b7d1f92 + c2d5907 commit ca68f5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/ui/fnc_openItemContextMenu.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
}];
Expand Down
4 changes: 2 additions & 2 deletions addons/xeh/fnc_init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca68f5f

Please sign in to comment.