From 15b05dc84b57bfef939760e8006712ec51fbd3ff Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 27 Sep 2016 19:09:54 -0400 Subject: [PATCH] Fix return change free space check when buying into vehicle This fixes incorrect return of "not enough space to accept change" when purchasing large quantities of magazines into a vehicle. Thanks @oiad for noticing this. --- .../actions/AdvancedTrading/functions/z_at_returnChange.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_returnChange.sqf b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_returnChange.sqf index 735517eeb..4a974a320 100644 --- a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_returnChange.sqf +++ b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_returnChange.sqf @@ -31,7 +31,7 @@ _addRegularMag = { _justChecking = _this select 1; _item = _this select 2; if (_justChecking) then { - _regularMagsToBuy = _this select 3; + _regularMagsToBuy = if (Z_SellingFrom == 1) then {0} else {_this select 3}; // Don't count MagsToBuy against free space in player inventory if buying into vehicle _moneyInGear = count (_this select 4); // Will be removed _moneyInBackpack = count (_this select 5); // Will be removed } else {