From d9e2466c96ccb215675a70077cfc8b3df5cbdad1 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Fri, 3 Apr 2026 11:32:07 +0300
Subject: [PATCH 26/26] Correct comment about 'owner' field of unit struct

It can be nullptr, on client side, for a flagless unit.

See RM #1912

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 common/unit.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/unit.h b/common/unit.h
index 78ea5a074f..07eac31342 100644
--- a/common/unit.h
+++ b/common/unit.h
@@ -142,12 +142,12 @@ struct unit {
   struct tile *tile;
   int refcount;
   enum direction8 facing;
-  struct player *owner; /* Cannot be nullptr. */
+  struct player *owner; /* Can be nullptr on client side, for a flagless unit */
   struct player *nationality;
   int id;
   int homecity;
 
-  int upkeep[O_LAST]; /* unit upkeep with regards to the homecity */
+  int upkeep[O_LAST]; /* Unit upkeep with regards to the homecity */
 
   int moves_left;
   int hp;
-- 
2.53.0

