--- a/yapf/yapf_destrail.hpp Sat Aug 26 14:44:55 2006 +0000
+++ b/yapf/yapf_destrail.hpp Sat Aug 26 16:34:03 2006 +0000
@@ -85,8 +85,8 @@
void SetDestination(Vehicle* v)
{
if (v->current_order.type == OT_GOTO_STATION) {
- m_destTile = CalcStationCenterTile(v->current_order.station);
- m_dest_station_id = v->current_order.station;
+ m_destTile = CalcStationCenterTile(v->current_order.dest.station);
+ m_dest_station_id = v->current_order.dest.station;
m_destTrackdirs = INVALID_TRACKDIR_BIT;
} else {
m_destTile = v->dest_tile;