diff --git a/arma/client/addons/gear/functions/fnc_shop_items_cost.sqf b/arma/client/addons/gear/functions/fnc_shop_items_cost.sqf index 1f0e96f..b54b452 100644 --- a/arma/client/addons/gear/functions/fnc_shop_items_cost.sqf +++ b/arma/client/addons/gear/functions/fnc_shop_items_cost.sqf @@ -18,7 +18,7 @@ private _cost = 0; if (_need > 0) then { private _class = [_x] call FUNC(shop_item_listing); ([_class, false] call FUNC(shop_item_price)) params ["_personal", "_company"]; - _cost = switch (_mode) do { + private _price = switch (_mode) do { case 0: { _personal }; @@ -31,7 +31,8 @@ private _cost = 0; default { 0 }; - } * _need; + }; + _cost = _cost + (_price * _need); }; } forEach _items;