InteractionMenu - Always compile before adding main action (#6156)

This commit is contained in:
PabstMirror 2018-02-23 23:30:33 -06:00 committed by GitHub
parent f70dfaf160
commit 04bb3d981c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
};