Skip to content

Commit

Permalink
InteractionMenu - Always compile before adding main action (#6156)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Feb 24, 2018
1 parent f70dfaf commit 04bb3d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addons/interact_menu/functions/fnc_addActionToObject.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ if (_actionList isEqualTo []) then {
_object setVariable [_varName, _actionList];
};

// Ensure the config menu was compiled first
if (_typeNum == 0) then {
[_object] call FUNC(compileMenu);
} else {
[_object] call FUNC(compileMenuSelfAction);
};

if (_parentPath isEqualTo ["ACE_MainActions"]) then {
[(typeOf _object), _typeNum] call FUNC(addMainAction);
};
Expand Down

0 comments on commit 04bb3d9

Please sign in to comment.