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

This commit is contained in:
frosch 2010-02-20 21:00:19 +00:00
parent 304c9297ed
commit 9d3be49bd3
1 changed files with 1 additions and 6 deletions

View File

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