mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user