mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
InteractionMenu - Always compile before adding main action (#6156)
This commit is contained in:
parent
f70dfaf160
commit
04bb3d981c
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user