Backpacks - Add extra condition for backpack checking (#9428)

Update fnc_isBackpack.sqf
This commit is contained in:
Grim 2023-09-24 13:06:20 -04:00 committed by GitHub
parent bf6dc5a7a1
commit 77a73aee71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@
params [["_backpack", objNull, [objNull, ""]]];
if (_backpack isEqualType objNull) exitWith {
maxLoad _backpack > 0
maxLoad _backpack > 0 && {getText (configOf _backpack >> "vehicleClass") == "backpacks"}
};
private _config = configFile >> "CfgVehicles" >> _backpack;