mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Fix buying from backpacks/vehicles dupe
This commit is contained in:
@@ -21,7 +21,7 @@ if( Z_AllowTakingMoneyFromBackpack ) then {
|
|||||||
_backpackPlayer = unitBackpack player;
|
_backpackPlayer = unitBackpack player;
|
||||||
|
|
||||||
if (!isNull _backpackPlayer) then {
|
if (!isNull _backpackPlayer) then {
|
||||||
_mags = getMagazineCargo Z_vehicle;
|
_mags = getMagazineCargo _backpackPlayer;
|
||||||
_backpackMoney = [];
|
_backpackMoney = [];
|
||||||
_kinds = _mags select 0;
|
_kinds = _mags select 0;
|
||||||
_ammmounts = _mags select 1;
|
_ammmounts = _mags select 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user