Fix selective UI script error when changing certain other settings

This commit is contained in:
jonpas 2016-06-04 21:20:10 +02:00
parent 48ab81ad87
commit b541b0b4f0

View File

@ -32,8 +32,10 @@ if (!hasInterface) exitWith {};
if (_name in ELEMENTS_BASIC) then {
[false] call FUNC(setElements);
} else {
if (isClass (configFile >> "ACE_UI" >> _name)) then {
[_name select [7], missionNamespace getVariable _name, true] call FUNC(setAdvancedElement);
};
};
}] call EFUNC(common,addEventHandler);
}] call EFUNC(common,addEventHandler);