diff options
Diffstat (limited to 'src/town.h')
-rw-r--r-- | src/town.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/town.h b/src/town.h index 076037881..ca8ef7f29 100644 --- a/src/town.h +++ b/src/town.h @@ -294,17 +294,12 @@ static inline HouseSpec *GetHouseSpecs(HouseID house_id) TileIndexDiff GetHouseNorthPart(HouseID &house); -static inline uint GetNumTowns() -{ - return (uint)Town::GetNumItems(); -} - /** * Return a random valid town. */ static inline Town *GetRandomTown() { - int num = RandomRange(GetNumTowns()); + int num = RandomRange((uint16)Town::GetNumItems()); TownID index = INVALID_TOWN; while (num >= 0) { |