From f636754aeaa07b7783047140aca596e09ac564db Mon Sep 17 00:00:00 2001 From: Sandbird Date: Sat, 3 May 2014 21:50:08 +0300 Subject: [PATCH] Update trade_any_vehicle.sqf Otherwise you get Error position: <== _objectCharacterId) then { Error Generic error in expression I am surprised no one complained that the key is not getting removed from the inventory... --- SQF/dayz_code/actions/trade_any_vehicle.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/trade_any_vehicle.sqf b/SQF/dayz_code/actions/trade_any_vehicle.sqf index 1c8e2cad6..8c5efda03 100644 --- a/SQF/dayz_code/actions/trade_any_vehicle.sqf +++ b/SQF/dayz_code/actions/trade_any_vehicle.sqf @@ -236,7 +236,7 @@ if (_finished) then { _keyColor = ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"]; { if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in _keyColor) then { - if (getNumber(configFile >> "CfgWeapons" >> _x >> "keyid") == _objectCharacterId) then { + if (str(getNumber(configFile >> "CfgWeapons" >> _x >> "keyid")) == _objectCharacterId) then { [_activatingPlayer,_x] call BIS_fnc_invRemove; }; };