From b00e510140b4983d58f580fdca87368b1edb436a Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 3 Jan 2009 16:06:58 +0000 Subject: (svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints --- src/town_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/town_gui.cpp') diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 4803e3bf2..c76556170 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -554,7 +554,7 @@ public: while (i < this->towns.Length()) { const Town *t = this->towns[i]; - assert(t->xy); + assert(t->xy != INVALID_TILE); SetDParam(0, t->index); SetDParam(1, t->population); @@ -601,7 +601,7 @@ public: if (id_v >= this->towns.Length()) return; // click out of town bounds const Town *t = this->towns[id_v]; - assert(t->xy); + assert(t->xy != INVALID_TILE); if (_ctrl_pressed) { ShowExtraViewPortWindow(t->xy); } else { -- cgit v1.2.3-54-g00ecf