Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
OverlordZorn committed Dec 11, 2024
1 parent 7cb7bde commit 1bf5b99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private _player = ACE_player;
if ((_origActionData select 10) isNotEqualTo {}) then {
// It should, so make a copy and pass it to the modifierFunction
_origActionData = +_origActionData;
private _actionParams = _origActionData select 6;
private _actionParams = _origActionData select 6; // Define _actionParams so its accessible within the statement/condition
[_target, ACE_player, _actionParams, _origActionData] call (_origActionData select 10);
};

Expand Down
2 changes: 1 addition & 1 deletion addons/interact_menu/functions/fnc_render.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if (GVAR(openedMenuType) >= 0) then {

// Check the action conditions
private _actionData = GVAR(selectedAction) select 0;
private _actionParams = _actionData select 6;
private _actionParams = _actionData select 6; // Define _actionParams so its accessible within the statement/condition
if ([_target, _player, _actionParams] call (_actionData select 4)) then {
// Call the statement
[_target, _player, _actionParams] call (_actionData select 3);
Expand Down

0 comments on commit 1bf5b99

Please sign in to comment.