diff --git a/addons/cargo/functions/fnc_unloadAllVehicles.sqf b/addons/cargo/functions/fnc_unloadAllVehicles.sqf index fcfe808445..d3507af047 100644 --- a/addons/cargo/functions/fnc_unloadAllVehicles.sqf +++ b/addons/cargo/functions/fnc_unloadAllVehicles.sqf @@ -18,7 +18,7 @@ params ["_vehicle"]; private _loadedVehicles = getVehicleCargo _vehicle - (_vehicle getVariable [QGVAR(loaded), []]); -private _unloadingInterval = getNumber (configfile >> "CfgVehicles" >> typeOf _vehicle >> "VehicleTransport" >> "Carrier" >> "unloadingInterval"); +private _unloadingInterval = getNumber (configOf _vehicle >> "VehicleTransport" >> "Carrier" >> "unloadingInterval"); { [{objnull setVehicleCargo _this}, _x, _forEachIndex * _unloadingInterval] call CBA_fnc_waitAndExecute; } forEach _loadedVehicles;