diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index 6eff2c174..18236991e 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -848,10 +848,11 @@ dayz_engineSwitch = { DZE_SafeZonePosCheck = { private ["_position","_skipPos"]; - _position = _this; + _position = _this select 0; _skipPos = false; + { - if ((_position distance (_x select 0)) < (_x select 1)) exitWith {_skipPos = true;}; + if ((_position distance (_x select 0)) < (if (count _this > 1) then {_this select 1} else {_x select 1})) exitWith {_skipPos = true;}; } forEach DZE_SafeZonePosArray; _skipPos; };