(svn r19174) -Fix: Buoys are no Stations, only BaseStations.

pull/155/head
frosch 15 years ago
parent 9f00e76fca
commit 41a7feb101

@ -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:

Loading…
Cancel
Save