Arsenal - Fix null comparison (#9213)

This commit is contained in:
Mike-MF 2023-06-10 17:59:13 +01:00 committed by GitHub
parent 3d3aa8d877
commit 888ac6c9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
params [["_object", objNull, [objNull]], ["_items", [], [true, []]], ["_global", false, [false]]];
if (_object == objNull) exitWith {};
if (isNull _object) exitWith {};
if (_items isEqualType [] && {count _items == 0}) exitWith {};
private _cargo = _object getVariable [QGVAR(virtualItems), [

View File

@ -20,7 +20,7 @@
params [ ["_object", objNull, [objNull]], ["_items", [], [true, [""]]], ["_global", false, [false]] ];
if (_object == objNull) exitWith {};
if (isNull _object) exitWith {};
if (_items isEqualType [] && {count _items == 0}) exitWith {};
private _cargo = _object getVariable [QGVAR(virtualItems), [