From e57a135750f455638350ea0336505e258d4020fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Tue, 3 Feb 2015 16:49:40 -0300 Subject: [PATCH] Missing prep --- addons/common/XEH_preInit.sqf | 1 + addons/common/functions/fnc_loadSettingsFromProfile.sqf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/common/XEH_preInit.sqf b/addons/common/XEH_preInit.sqf index b2f5ef209d..90a774ddfe 100644 --- a/addons/common/XEH_preInit.sqf +++ b/addons/common/XEH_preInit.sqf @@ -87,6 +87,7 @@ PREP(isInBuilding); PREP(isPlayer); PREP(isTurnedOut); PREP(letterToCode); +PREP(loadSettingsFromProfile); PREP(loadSettingsOnServer); PREP(map); PREP(moduleCheckPBOs); diff --git a/addons/common/functions/fnc_loadSettingsFromProfile.sqf b/addons/common/functions/fnc_loadSettingsFromProfile.sqf index 9d077359ce..1e8e9001aa 100644 --- a/addons/common/functions/fnc_loadSettingsFromProfile.sqf +++ b/addons/common/functions/fnc_loadSettingsFromProfile.sqf @@ -25,7 +25,7 @@ if !(_isForced) then { _profileValue = profileNamespace getvariable _name; // If the setting is stored on the profile - if !(isNil _profileValue) then { + if !(isNil "_profileValue") then { // If the profile variable has the correct type if (typeName _profileValue == typeName (missionNamespace getvariable _name)) then { // Load the setting from the profile