mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Fix null comparison (#9213)
This commit is contained in:
parent
3d3aa8d877
commit
888ac6c9bc
@ -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), [
|
||||
|
@ -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), [
|
||||
|
Loading…
Reference in New Issue
Block a user