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...
This commit is contained in:
Sandbird
2014-05-03 21:50:08 +03:00
parent b7ccf30d20
commit f636754aea

View File

@@ -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;
};
};