From 498e06cce0a5646b916d8270b7098424ae3c783f Mon Sep 17 00:00:00 2001 From: IT07 Date: Sun, 8 May 2016 20:52:49 +0200 Subject: [PATCH] Potential problem prevention --- exile_vemf_reloaded/missions/DynamicLocationInvasion.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exile_vemf_reloaded/missions/DynamicLocationInvasion.sqf b/exile_vemf_reloaded/missions/DynamicLocationInvasion.sqf index b4d292f..b852aab 100644 --- a/exile_vemf_reloaded/missions/DynamicLocationInvasion.sqf +++ b/exile_vemf_reloaded/missions/DynamicLocationInvasion.sqf @@ -4,11 +4,11 @@ VEMFrMissionCount = VEMFrMissionCount + 1; if isNil"VEMFrInvasionCount" then { VEMFrInvasionCount = 0; }; +VEMFrInvasionCount = VEMFrInvasionCount + 1; _missionName = param [0, "", [""]]; -if (VEMFrInvasionCount < (([[_missionName],["maxInvasions"]] call VEMFr_fnc_getSetting) select 0)) then +if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_getSetting) select 0)) then { scopeName "outer"; - VEMFrInvasionCount = VEMFrInvasionCount + 1; private ["_settings","_grpCount","_groupUnits","_skipDistance","_loc","_hasPlayers","_spawned","_grpArr","_unitArr","_done","_boxes","_box","_chute","_colors","_lightType","_light","_smoke"]; // Define _settings _settings = [[_missionName],["groupCount","groupUnits","maxDistance","maxDistancePrefered","skipDistance","marker","parachuteCrate","markCrateVisual","markCrateOnMap","announce","streetLights","streetLightsRestore","streetLightsRange","allowCrateLift"]] call VEMFr_fnc_getSetting;