Codechange: replace INVALID_X with XID::Invalid() for PoolIDs

This commit is contained in:
Rubidium
2025-02-16 19:29:53 +01:00
committed by rubidium42
parent d13b0e0813
commit fd4adc55e3
157 changed files with 744 additions and 772 deletions
+1 -1
View File
@@ -373,7 +373,7 @@ static bool TryFoundTownNearby(TileIndex tile, void *user_data)
TownID id = std::get<TownID>(result);
/* Check if the command failed. */
if (id == INVALID_TOWN) return false;
if (id == TownID::Invalid()) return false;
/* The command succeeded, send the ID back through user_data. */
town.town_id = id;