From c7a2769bdd80ec30de84fd59bbcd8d727c9806d3 Mon Sep 17 00:00:00 2001 From: lambdatiger Date: Mon, 15 Jan 2024 16:05:58 -0600 Subject: [PATCH] Really obvious isNull instead of isEqualTo Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> --- addons/frag/functions/fnc_dev_switchUnitHandle.sqf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/frag/functions/fnc_dev_switchUnitHandle.sqf b/addons/frag/functions/fnc_dev_switchUnitHandle.sqf index e99fb334e2..8afdf53428 100644 --- a/addons/frag/functions/fnc_dev_switchUnitHandle.sqf +++ b/addons/frag/functions/fnc_dev_switchUnitHandle.sqf @@ -17,8 +17,7 @@ */ params ["_lastUnit", "_currentUnit"]; - -if (_currentUnit isEqualTo objNull || {_lastUnit isEqualTo _currentUnit}) exitWith {}; +if (isNull _currentUnit || {_lastUnit isEqualTo _currentUnit}) exitWith {}; if (!local _currentUnit) exitWith { [ {local _currentUnit},