Commit 731083ab authored by vabene1111's avatar vabene1111
Browse files

added default to fix script error on cfg read

parent 02f345b9
......@@ -22,8 +22,8 @@ _enable = (call compile (["EnableSpawnAreaSelection","DS"] call BASE_fnc_getCfgV
if!(_enable) exitWith {
_spawnRegions = [];
for "_i" from 0 to 20 do {
_region = (["Zone" + str(_i) + "Marker","DS"] call BASE_fnc_getCfgValue);
if !(isNil "_region") then {
_region = (["Zone" + str(_i) + "Marker","DS",""] call BASE_fnc_getCfgValue);
if !(_region isEqualTo "") then {
_spawnRegions pushback _region;
};
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment