diff --git a/SQF/dayz_code/actions/player_switchWeapon.sqf b/SQF/dayz_code/actions/player_switchWeapon.sqf index de7ec6782..bca3b9e49 100644 --- a/SQF/dayz_code/actions/player_switchWeapon.sqf +++ b/SQF/dayz_code/actions/player_switchWeapon.sqf @@ -27,6 +27,7 @@ dz_fn_switchWeapon = if (vehicle player != player) exitWith {}; if Player_IsOnLadder() exitWith {}; if (dayz_autoRun) then {call dayz_autoRunOff;}; + if (dayz_isSwimming) exitWith {}; private ["_current","_primary","_secondary","_swapWeapons"]; @@ -289,4 +290,4 @@ dz_fn_switchWeapon_animDone = if (IS_MELEE(primaryWeapon player)) then { call dayz_meleeMagazineCheck; }; #endif -}; \ No newline at end of file +};