File diff r6483:d2923d9c6631 → r6484:7a9ab9f50ee4
src/town.h
Show inline comments
 
@@ -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));
 
}