From 852056309b2a208bfe88d0c8960345b5ed6b1bdf Mon Sep 17 00:00:00 2001 From: John Jordan Date: Sun, 21 Apr 2024 03:45:18 +0100 Subject: [PATCH] Fix case where HC vehicles are remote-spawned with no roads near HQ --- A3A/addons/core/functions/REINF/fn_spawnHCVeh.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/A3A/addons/core/functions/REINF/fn_spawnHCVeh.sqf b/A3A/addons/core/functions/REINF/fn_spawnHCVeh.sqf index e955a38aae..8ff0fb407b 100644 --- a/A3A/addons/core/functions/REINF/fn_spawnHCVeh.sqf +++ b/A3A/addons/core/functions/REINF/fn_spawnHCVeh.sqf @@ -35,7 +35,7 @@ private _spawnPos = false; private _spawnDir = false; for "_i" from 1 to 10 do { - //systemChat format ["Attempt %1", _i]; + if (_roads isEqualTo []) exitWith {}; private _road = selectRandom _roads; (getRoadInfo _road) params ["", "_roadWidth", "", "", "", "", "_begPos", "_endPos"];