From 46c484e0f05f7ebf145d5c35a7cd118dff7da886 Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Sat, 10 Aug 2024 05:44:31 -0700 Subject: [PATCH] Update addons/csw/functions/fnc_reload_handleReturnAmmo.sqf --- addons/csw/functions/fnc_reload_handleReturnAmmo.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/csw/functions/fnc_reload_handleReturnAmmo.sqf b/addons/csw/functions/fnc_reload_handleReturnAmmo.sqf index d893450c55..30170fcddf 100644 --- a/addons/csw/functions/fnc_reload_handleReturnAmmo.sqf +++ b/addons/csw/functions/fnc_reload_handleReturnAmmo.sqf @@ -49,7 +49,7 @@ if ((maxLoad _container) isEqualTo 0) then { _container = _unloadTo getVariable [QGVAR(container), objNull]; if ((_container distance _unloadTo) > DISTANCE_SEARCH_RADIUS) then { _container = objNull; }; if (isNull _container) then { - _container = (nearestObjects [_unloadTo, [["GroundWeaponHolder"], [QGVAR(ammo_holder)]] select GVAR(handleExtraMagazinesType), 5]) param [0, objNull]; + _container = (nearestObjects [_unloadTo, [["GroundWeaponHolder"], [QGVAR(ammo_holder)]] select GVAR(handleExtraMagazinesType), DISTANCE_SEARCH_RADIUS]) param [0, objNull]; }; };