Fix unable to sell classic 'ItemBloodbag' at traders

Mistake from 4fa36df
This commit is contained in:
ebayShopper
2017-03-29 12:22:31 -04:00
parent c6c7472ab7
commit 30d961931f
2 changed files with 2 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ _totalPrice = 0;
_text = "";
_type = getText(missionConfigFile >> "CfgTraderCategory" >> _cat >> _y >> "type");
// Make sure type matches for items that have the same weapon and magazine classname (i.e. PipeBomb, Mine, Javelin, etc.)
if ((_type == "trade_items" && !(_y in _mags)) or (_type == "trade_weapons" && !(_y in _weaps))) exitWith {};
if ((_type == "trade_items" && !(_y in _mags) && !_swap) or (_type == "trade_weapons" && !(_y in _weaps))) exitWith {};
_sell = getArray(missionConfigFile >> "CfgTraderCategory" >> _cat >> _y >> "sell");
_buy = getArray(missionConfigFile >> "CfgTraderCategory" >> _cat >> _y >> "buy");
if (_swap) then {_y = "ItemBloodbag"};