Missing prep

This commit is contained in:
Nicolás Badano 2015-02-03 16:49:40 -03:00
parent 146e87f02e
commit e57a135750
2 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@ PREP(isInBuilding);
PREP(isPlayer);
PREP(isTurnedOut);
PREP(letterToCode);
PREP(loadSettingsFromProfile);
PREP(loadSettingsOnServer);
PREP(map);
PREP(moduleCheckPBOs);

View File

@ -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