@@ -276,13 +276,13 @@ static inline bool IsValidTown(const Tow
{
return town->xy != 0;
}
/**
* Check if a TownID is valid.
* @param TownID to inquiry
* @param index to inquiry in the pool of town
* @return true if it exists
*/
static inline bool IsValidTownID(TownID index)
return index < GetTownPoolSize() && IsValidTown(GetTown(index));