Optimized isNull check

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
lambdatiger 2024-01-15 15:24:47 -06:00 committed by GitHub
parent ced7aeb50c
commit 7581a480eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ if (!local _currentUnit) exitWith {
private _aID = missionNamespace getVariable [QGVAR(dev_clearTraceAction), -1];
if (_aID > -1 && {_lastUnit isNotEqualTo objNull}) then {
if (_aID > -1 && {!isNull _lastUnit}) then {
_lastUnit removeAction _aID;
};