From 370b07105d42acf82ba92d4992f57793dcb9e809 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sat, 7 Nov 2020 09:58:23 +0100 Subject: [PATCH] Use new command configOf Co-authored-by: Filip Maciejewski --- addons/cargo/functions/fnc_canShowUnloadAllVehicles.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/cargo/functions/fnc_canShowUnloadAllVehicles.sqf b/addons/cargo/functions/fnc_canShowUnloadAllVehicles.sqf index 2aa594230e..b6e5c60650 100644 --- a/addons/cargo/functions/fnc_canShowUnloadAllVehicles.sqf +++ b/addons/cargo/functions/fnc_canShowUnloadAllVehicles.sqf @@ -22,5 +22,5 @@ params [ ]; driver _vehicle isEqualTo _unit && -{isClass (configfile >> "CfgVehicles" >> typeOf _vehicle >> "VehicleTransport" >> "Carrier")} && +{isClass (configOf _vehicle >> "VehicleTransport" >> "Carrier")} && {!(getVehicleCargo _vehicle - (_vehicle getVariable [QGVAR(loaded), []]) isEqualTo [])}