diff --git a/addons/ui/XEH_clientInit.sqf b/addons/ui/XEH_clientInit.sqf index 72a754a28e..23940d2fb2 100644 --- a/addons/ui/XEH_clientInit.sqf +++ b/addons/ui/XEH_clientInit.sqf @@ -32,7 +32,9 @@ if (!hasInterface) exitWith {}; if (_name in ELEMENTS_BASIC) then { [false] call FUNC(setElements); } else { - [_name select [7], missionNamespace getVariable _name, true] call FUNC(setAdvancedElement); + if (isClass (configFile >> "ACE_UI" >> _name)) then { + [_name select [7], missionNamespace getVariable _name, true] call FUNC(setAdvancedElement); + }; }; }] call EFUNC(common,addEventHandler);