diff --git a/SQF/dayz_code/actions/trade_any_vehicle.sqf b/SQF/dayz_code/actions/trade_any_vehicle.sqf index 46469b7ad..1c8e2cad6 100644 --- a/SQF/dayz_code/actions/trade_any_vehicle.sqf +++ b/SQF/dayz_code/actions/trade_any_vehicle.sqf @@ -235,7 +235,7 @@ if (_finished) then { _temp_keys = []; _keyColor = ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"]; { - if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in _key_colors) then { + if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in _keyColor) then { if (getNumber(configFile >> "CfgWeapons" >> _x >> "keyid") == _objectCharacterId) then { [_activatingPlayer,_x] call BIS_fnc_invRemove; }; @@ -267,4 +267,4 @@ if (_finished) then { }; }; }; -DZE_ActionInProgress = false; \ No newline at end of file +DZE_ActionInProgress = false;