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/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/train_cmd.cpp') diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 80ead8107..50f50b137 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -4447,7 +4447,7 @@ void Train::OnNewDay() /* update destination */ if (this->current_order.IsType(OT_GOTO_STATION)) { TileIndex tile = GetStation(this->current_order.GetDestination())->train_tile; - if (tile != 0) this->dest_tile = tile; + if (tile != INVALID_TILE) this->dest_tile = tile; } if (this->running_ticks != 0) { -- cgit v1.2.3-70-g09d2