Mercurial > hg > openttd
diff src/station_gui.cpp @ 10488:a9ecb9be9814 draft
(svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo)
author | smatz <smatz@openttd.org> |
---|---|
date | Fri, 26 Dec 2008 18:01:15 +0000 |
parents | 39cf8eebfda5 |
children | 45ca88a8de7d |
line wrap: on
line diff
--- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -338,7 +338,7 @@ const Station *st = this->stations[i]; int x; - assert(st->xy != 0); + assert(st->xy != INVALID_TILE); /* Do not do the complex check HasStationInUse here, it may be even false * when the order had been removed and the station list hasn't been removed yet */