From 28fcb49158891ef9e9d2efaa6531011cb25a4b28 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sun, 8 Jun 2025 04:05:58 +0300
Subject: [PATCH 84/84] api_game_effects.c: Replace NULL with nullptr

See RM #1491

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 common/scriptcore/api_game_effects.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/common/scriptcore/api_game_effects.c b/common/scriptcore/api_game_effects.c
index 264505e814..d7d2167319 100644
--- a/common/scriptcore/api_game_effects.c
+++ b/common/scriptcore/api_game_effects.c
@@ -96,11 +96,11 @@ int api_effects_unit_bonus(lua_State *L, Unit *punit, Player *other_player,
     return 0;
   }
 
-  return get_target_bonus_effects(NULL,
+  return get_target_bonus_effects(nullptr,
                                   &(const struct req_context) {
                                     .player = unit_owner(punit),
                                     .city = unit_tile(punit)
-                                      ? tile_city(unit_tile(punit)) : NULL,
+                                      ? tile_city(unit_tile(punit)) : nullptr,
                                     .tile = unit_tile(punit),
                                     .unit = punit,
                                     .unittype = unit_type_get(punit),
@@ -127,7 +127,7 @@ int api_effects_tile_bonus(lua_State *L, Tile *ptile, City *pcity,
                            const char *output_id, const char *effect_type)
 {
   const struct player *pplayer;
-  const struct output_type *poutput = NULL;
+  const struct output_type *poutput = nullptr;
   enum effect_type etype;
 
   LUASCRIPT_CHECK_STATE(L, 0);
@@ -139,7 +139,7 @@ int api_effects_tile_bonus(lua_State *L, Tile *ptile, City *pcity,
     return 0;
   }
 
-  if (output_id != NULL) {
+  if (output_id != nullptr) {
     enum output_type_id id = output_type_by_identifier(output_id);
 
     if (id != O_LAST) {
@@ -149,16 +149,16 @@ int api_effects_tile_bonus(lua_State *L, Tile *ptile, City *pcity,
     }
   }
 
-  pplayer = (pcity != NULL ? city_owner(pcity) : NULL);
+  pplayer = (pcity != nullptr ? city_owner(pcity) : nullptr);
 
-  return get_target_bonus_effects(NULL,
+  return get_target_bonus_effects(nullptr,
                                   &(const struct req_context) {
                                     .player = pplayer,
                                     .city = pcity,
                                     .tile = ptile,
                                     .output = poutput,
                                   },
-                                  NULL,
+                                  nullptr,
                                   etype);
 }
 
@@ -190,7 +190,7 @@ api_effects_specialist_bonus(lua_State *L, Specialist *s, lua_Object d,
     return 0;
   }
 
-  if (output_id != NULL) {
+  if (output_id != nullptr) {
     enum output_type_id id = output_type_by_identifier(output_id);
 
     if (O_LAST == id){
-- 
2.47.2

