Merge pull request #3872 from acemod/fixUIerror

Fix selective UI script error when changing certain other settings
This commit is contained in:
Glowbal 2016-06-05 13:44:22 +02:00
commit 2ad3f57414

View File

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