Skip to content

Commit

Permalink
Corrected an issue with some incorrect values in fn_stageInit.sqf.
Browse files Browse the repository at this point in the history
  • Loading branch information
Superxpdude committed Oct 26, 2017
1 parent 89d96f3 commit fe33c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/functions/stage/fn_stageInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ if (!isServer) exitWith {};

// Initialize stage variables
_defaultStage = (getMissionConfigValue "XPT_stageDefault");
if (isClass ((getMissionConfig "CfgXPT") >> "stages" >> _newStage)) then {
if (isClass ((getMissionConfig "CfgXPT") >> "stages" >> _defaultStage)) then {
XPT_stage_active = _defaultStage;
} else {
XPT_stage_active = "stage_base";
[[true, format ["[XPT-STAGE] Default stage <%1> does not exist", _newStage]]] remoteExec ["XPT_fnc_errorReport", 0];
[[true, format ["[XPT-STAGE] Default stage <%1> does not exist", _defaultStage]]] remoteExec ["XPT_fnc_errorReport", 0];
};
publicVariable "XPT_stage_active";

0 comments on commit fe33c61

Please sign in to comment.