fixes to qty check on purchases
This commit is contained in:
vbawol
2013-01-23 01:14:55 -06:00
parent 8700946793
commit b8c3d6a325
3 changed files with 5 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ _qty = {_x == _part_in} count magazines player;
if (_qty >= _qty_in) then {
_isOk = false;
if(_buy_o_sell == "buy") then {
_config = (configFile >> "cfgMagazines" >> _part_out);
_isOk = [player,_config] call BIS_fnc_invAdd;