From debdede6dc3e9aacceecd9953f5e19b9b77ae25f Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Mon, 21 Jul 2025 05:16:58 +0300
Subject: [PATCH 75/75] Add tile_resource_is_valid() function header

See RM #1481

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

diff --git a/common/tile.h b/common/tile.h
index 51212b02dc..d506299f91 100644
--- a/common/tile.h
+++ b/common/tile.h
@@ -101,6 +101,10 @@ void tile_set_owner(struct tile *ptile, struct player *pplayer,
 #define tile_claimer(_tile) ((_tile)->claimer)
 
 #define tile_resource(_tile) ((_tile)->resource)
+
+/************************************************************************//**
+  Check if the tile has a valid resource on it.
+****************************************************************************/
 static inline bool tile_resource_is_valid(const struct tile *ptile)
 { return ptile->resource != nullptr
     && BV_ISSET(ptile->extras, ptile->resource->id);
-- 
2.47.2

