From 419f6e099f3b32a8b1f988dd7c912754589bf6d5 Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 26 Dec 2008 18:01:15 +0000 Subject: (svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo) --- src/ship_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ship_cmd.cpp') diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index bb3b8f83d..b93433514 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -237,7 +237,7 @@ TileIndex Ship::GetOrderStationLocation(StationID station) if (station == this->last_station_visited) this->last_station_visited = INVALID_STATION; const Station *st = GetStation(station); - if (st->dock_tile != 0) { + if (st->dock_tile != INVALID_TILE) { return TILE_ADD(st->dock_tile, ToTileIndexDiff(GetDockOffset(st->dock_tile))); } else { this->cur_order_index++; -- cgit v1.2.3-54-g00ecf