From 04bb3d981ca64c7d28215c0d1a415e755c8d33f0 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 23 Feb 2018 23:30:33 -0600 Subject: [PATCH] InteractionMenu - Always compile before adding main action (#6156) --- addons/interact_menu/functions/fnc_addActionToObject.sqf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/interact_menu/functions/fnc_addActionToObject.sqf b/addons/interact_menu/functions/fnc_addActionToObject.sqf index 31c8301735..c250296af6 100644 --- a/addons/interact_menu/functions/fnc_addActionToObject.sqf +++ b/addons/interact_menu/functions/fnc_addActionToObject.sqf @@ -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); };