From 83c670576b8e96ce0dde5347008fcb5e02a46f93 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Mon, 6 Apr 2015 11:58:52 +0200 Subject: [PATCH] fixed typeOf instead of typeName --- addons/optionsmenu/functions/fnc_exportSettings.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/optionsmenu/functions/fnc_exportSettings.sqf b/addons/optionsmenu/functions/fnc_exportSettings.sqf index 9ef736ac1c6..3ac2455a64c 100644 --- a/addons/optionsmenu/functions/fnc_exportSettings.sqf +++ b/addons/optionsmenu/functions/fnc_exportSettings.sqf @@ -44,7 +44,7 @@ _compiledConfig = " _value = format['"%1"', _value]; }; if (_typeName == "BOOL") then { - _value = if (typeOf _value == "BOOL" && {_value}) then {1} else {0}; + _value = if (typeName _value == "BOOL" && {_value}) then {1} else {0}; }; _compiledConfigEntry = format [" class %1 {