From 0bf95f7917432c4798e3e3438cbd2ec03ccbf75d Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sat, 7 Nov 2020 09:58:33 +0100 Subject: [PATCH] Use new command configOf Co-authored-by: Filip Maciejewski --- addons/cargo/functions/fnc_unloadAllVehicles.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;