From 5ee4fa4ecf449ed433a4c1fdd444acefdffdad7d Mon Sep 17 00:00:00 2001 From: commy2 Date: Sun, 1 Jul 2018 00:53:35 +0200 Subject: [PATCH] fix resetting mission settings (#945) --- addons/settings/fnc_initDisplayGameOptions.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/settings/fnc_initDisplayGameOptions.sqf b/addons/settings/fnc_initDisplayGameOptions.sqf index e9fd0bf7a..6465e96b7 100644 --- a/addons/settings/fnc_initDisplayGameOptions.sqf +++ b/addons/settings/fnc_initDisplayGameOptions.sqf @@ -51,7 +51,10 @@ if (is3DEN && {FILE_EXISTS(MISSION_SETTINGS_FILE)}) then { private _setting = _x; (GVAR(missionConfig) getVariable [_setting, []]) params ["_value", "_priority"]; - [_setting, _value, _priority, "mission"] call FUNC(set); + + if (!isNil "_value") then { + [_setting, _value, _priority, "mission"] call FUNC(set); + }; } forEach GVAR(allSettings); };