From a6748c65274de3ab6cc001053b5d1126257158c7 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Wed, 10 Sep 2025 19:30:32 +0300
Subject: [PATCH 16/16] unitlist.[ch]: Replace NULL with nullptr

See RM #1680

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 common/unitlist.c | 4 ++--
 common/unitlist.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/unitlist.c b/common/unitlist.c
index b336bbddf6..4c7f787d74 100644
--- a/common/unitlist.c
+++ b/common/unitlist.c
@@ -24,7 +24,7 @@
 #include "unitlist.h"
 
 /************************************************************************//**
-  Look for a unit with the given ID in the unit list.  Returns NULL if none
+  Look for a unit with the given ID in the unit list. Returns nullptr if none
   is found.
 ****************************************************************************/
 struct unit *unit_list_find(const struct unit_list *punitlist, int unit_id)
@@ -35,7 +35,7 @@ struct unit *unit_list_find(const struct unit_list *punitlist, int unit_id)
     }
   } unit_list_iterate_end;
 
-  return NULL;
+  return nullptr;
 }
 
 /************************************************************************//**
diff --git a/common/unitlist.h b/common/unitlist.h
index a042165eca..fe92713ccf 100644
--- a/common/unitlist.h
+++ b/common/unitlist.h
@@ -56,7 +56,7 @@ extern "C" {
       struct unit *_unit =                                              \
         game_unit_by_number(_unit##_numbers[_unit##_index]);            \
                                                                         \
-      if (NULL != _unit) {
+      if (_unit != nullptr) {
 
 #define unit_list_iterate_safe_end                                      \
       }                                                                 \
-- 
2.51.0

