Fixed weird fix for getNumber for Array bug in setSettingFromConfig.

This commit is contained in:
Glowbal 2015-02-22 11:36:21 +01:00
parent 1ed50bfe3e
commit 14411a5ef0

View File

@ -18,7 +18,7 @@ _fnc_getValueWithType = {
EXPLODE_2_PVT(_this,_optionEntry,_typeName);
_valueConfig = (_optionEntry >> "value");
_value = if (!(isArray _valueConfig) && !(isText _valueConfig)) then { getNumber (_optionEntry >> "value"); } else { 0 };
_value = if (isNumber (_optionEntry >> "value")) then {getNumber (_optionEntry >> "value")} else {0};
TRACE_3("_fnc_getValueWithType:", configName _optionEntry, _typeName, _value);
if (_typeName == "BOOL") exitWith {
_value > 0