yapf/yapf_destrail.hpp
changeset 4389 18d6ccfb5335
parent 3930 1c293cf92ab5
child 4527 fa30d19685c2
--- 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;