Really obvious isNull instead of isEqualTo

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
lambdatiger 2024-01-15 16:05:58 -06:00 committed by GitHub
parent 29d3d4c19f
commit c7a2769bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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},