diff options
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index a3a69d8a1..3f70a8c28 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -838,7 +838,7 @@ public: if (_ctrl_pressed && sel < this->vehicle->GetNumOrders()) { const Order *ord = GetVehicleOrder(this->vehicle, sel); - TileIndex xy = 0; + TileIndex xy = INVALID_TILE; switch (ord->GetType()) { case OT_GOTO_STATION: xy = GetStation(ord->GetDestination())->xy ; break; @@ -851,7 +851,7 @@ public: break; } - if (xy != 0) ScrollMainWindowToTile(xy); + if (xy != INVALID_TILE) ScrollMainWindowToTile(xy); return; } |