summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index e37e331c1..ec318f488 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -65,7 +65,7 @@ DEFINE_OLD_POOL_GENERIC(Town, Town)
Town::Town(TileIndex tile)
{
- if (tile != 0) _total_towns++;
+ if (tile != INVALID_TILE) _total_towns++;
this->xy = tile;
}
@@ -115,7 +115,7 @@ Town::~Town()
MarkWholeScreenDirty();
- this->xy = 0;
+ this->xy = INVALID_TILE;
UpdateNearestTownForRoadTiles(false);
}