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