diff --git a/addons/settings/XEH_preInit.sqf b/addons/settings/XEH_preInit.sqf index 7eb2df0ca..b290b2706 100644 --- a/addons/settings/XEH_preInit.sqf +++ b/addons/settings/XEH_preInit.sqf @@ -33,8 +33,9 @@ ADDON = false; if (isNil QGVAR(ready)) exitWith {}; private _script = (GVAR(default) getVariable [_setting, []]) param [8, {}]; - [_value, _script] call { + [_value, _script, _setting] call { private ["_setting", "_value", "_script"]; // prevent these variables from being overwritten + private _thisSetting = _this select 2; (_this select 0) call (_this select 1); };