UI - Fix changing UI settings (#8541)

This commit is contained in:
PabstMirror 2021-10-17 00:48:12 -05:00 committed by GitHub
parent e6bc44225f
commit 77fe9ab434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ GVAR(elementsSet) = call CBA_fnc_createNamespace;
if (_name in ELEMENTS_BASIC) then {
[true] call FUNC(setElements);
} else {
private _nameNoPrefix = toLower (_name select [_delimPos]);
private _nameNoPrefix = toLower (_name select [7]);
private _cachedElement = GVAR(configCache) getVariable _nameNoPrefix;
if (!isNil "_cachedElement") then {
[_nameNoPrefix, _value, true] call FUNC(setAdvancedElement);