summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/town_cmd.c b/town_cmd.c
index 3894164b2..e49cf4eb5 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -201,7 +201,7 @@ static void UpdateTownRadius(Town *t);
static bool IsCloseToTown(TileIndex tile, uint dist)
{
- Town *t;
+ const Town* t;
FOR_ALL_TOWNS(t) {
if (t->xy != 0 && DistanceManhattan(tile, t->xy) < dist)
@@ -245,7 +245,8 @@ static void ChangePopulation(Town *t, int mod)
uint32 GetWorldPopulation(void)
{
uint32 pop;
- Town *t;
+ const Town* t;
+
pop = 0;
FOR_ALL_TOWNS(t) {
pop += t->population;