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.
This commit is contained in:
ebaydayz
2016-09-27 19:09:54 -04:00
parent a2fcb69579
commit 15b05dc84b

View File

@@ -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 {