Skip to content

Commit

Permalink
CSW - Force QGVAR(handleExtraMagazinesType) to be respected (acemod…
Browse files Browse the repository at this point in the history
…#9903)

Force QGVAR(handleExtraMagazinesType) to be respected
  • Loading branch information
johnb432 authored and blake8090 committed Aug 18, 2024
1 parent e2ca318 commit b5e6678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/csw/functions/fnc_reload_handleReturnAmmo.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if ((_fullMagazines == 0) && {_bulletsRemaining == 0}) exitWith {};
private _container = _unloadTo getVariable [QGVAR(container), objNull];
if ((_container distance _unloadTo) > 10) then { _container = objNull; };
if (isNull _container) then {
_container = (nearestObjects [_unloadTo, [QGVAR(ammo_holder), "GroundWeaponHolder"], 10]) param [0, objNull];
_container = (nearestObjects [_unloadTo, [["GroundWeaponHolder"], [QGVAR(ammo_holder)]] select GVAR(handleExtraMagazinesType), 10]) param [0, objNull];
};


Expand Down

0 comments on commit b5e6678

Please sign in to comment.