diff --git a/addons/misc/functions/fnc_removeItemFromVehicle.sqf b/addons/misc/functions/fnc_removeItemFromVehicle.sqf index 4a5deae51..6359f1daf 100644 --- a/addons/misc/functions/fnc_removeItemFromVehicle.sqf +++ b/addons/misc/functions/fnc_removeItemFromVehicle.sqf @@ -12,12 +12,12 @@ * None * * Example: - * [player,"ACE_elasticBandage"] call kat_misc_fnc_removeItemFromVehicle + * [vehicle player, "kat_Painkiller", true] call kat_misc_fnc_removeItemFromVehicle * * Public: No */ -params ["_vehicle","_item",["_isMagazine",false]]; +params ["_vehicle", "_item", ["_isMagazine", false]]; if !(_isMagazine) then { private _cargoItems = getItemCargo _vehicle; diff --git a/addons/misc/functions/fnc_useItem.sqf b/addons/misc/functions/fnc_useItem.sqf index 57f51bba0..dea549d31 100644 --- a/addons/misc/functions/fnc_useItem.sqf +++ b/addons/misc/functions/fnc_useItem.sqf @@ -44,7 +44,8 @@ if (GVAR(allowSharedVehicleEquipment) > 0 && _vehicleCondition) then { }; case 3: { // Vehicle's equipment first (except self-treatment) if(_medic isEqualTo _patient) then { - _useOrder = _sharedUseOrder + _vehicle; + _useOrder = _sharedUseOrder + [_vehicle]; + _vehicleIndex = (count _useOrder) - 1; } else { _useOrder = ([_vehicle] + _sharedUseOrder); _vehicleIndex = 0;