summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-02-20 21:00:19 +0000
committerfrosch <frosch@openttd.org>2010-02-20 21:00:19 +0000
commit9d3be49bd3e5b7622d2358f4c1cd6b0d40f803fe (patch)
tree363f67a9c7199669701ac757cd389ee614989ca3 /src/order_gui.cpp
parent304c9297edb96bb457e89b856c684f693d821cd3 (diff)
downloadopenttd-9d3be49bd3e5b7622d2358f4c1cd6b0d40f803fe.tar.xz
(svn r19174) -Fix: Buoys are no Stations, only BaseStations.
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 73760fec1..d591bb438 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -1001,13 +1001,8 @@ public:
switch (ord->GetType()) {
case OT_GOTO_WAYPOINT:
- if (this->vehicle->type == VEH_TRAIN) {
- xy = Waypoint::Get(ord->GetDestination())->xy;
- break;
- }
- /* FALL THROUGH */
case OT_GOTO_STATION:
- xy = Station::Get(ord->GetDestination())->xy;
+ xy = BaseStation::Get(ord->GetDestination())->xy;
break;
case OT_GOTO_DEPOT: