From 11c4356875ec7690de2e6dd7b012ce0eaedb6b48 Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Fri, 12 Mar 2021 11:29:24 +0100 Subject: [PATCH] Forgot player check --- SQF/dayz_code/compile/submarine_surface.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/submarine_surface.sqf b/SQF/dayz_code/compile/submarine_surface.sqf index 6ad903cf0..42d51daf5 100644 --- a/SQF/dayz_code/compile/submarine_surface.sqf +++ b/SQF/dayz_code/compile/submarine_surface.sqf @@ -2,7 +2,7 @@ local _vehicle = _this select 0; local _unit = _this select 2; local _driver = driver _vehicle; -if (!(isNull _driver) && {_driver != _unit}) exitwith {}; +if ((_unit != player) || {!(isNull _driver) && {_driver != _unit}}) exitwith {}; while {_vehicle isKindOf "Submarine_DZE_base"} do { local _pos = getposATL _vehicle;