From 66da3cbb20bcaf29ed3b863c25b291527b56d44a Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 2 Dec 2009 18:12:24 +0000 Subject: (svn r18383) -Fix (r18375): triggering NOT_REACHED for some waypoints --- src/pathfinder/yapf/yapf_destrail.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pathfinder/yapf/yapf_destrail.hpp') diff --git a/src/pathfinder/yapf/yapf_destrail.hpp b/src/pathfinder/yapf/yapf_destrail.hpp index 7953baf25..da360b474 100644 --- a/src/pathfinder/yapf/yapf_destrail.hpp +++ b/src/pathfinder/yapf/yapf_destrail.hpp @@ -137,7 +137,7 @@ public: switch (v->current_order.GetType()) { case OT_GOTO_STATION: case OT_GOTO_WAYPOINT: - m_destTile = CalcClosestStationTile(v->current_order.GetDestination(), v->tile, STATION_RAIL); + m_destTile = CalcClosestStationTile(v->current_order.GetDestination(), v->tile, v->current_order.IsType(OT_GOTO_STATION) ? STATION_RAIL : STATION_WAYPOINT); m_dest_station_id = v->current_order.GetDestination(); m_destTrackdirs = INVALID_TRACKDIR_BIT; break; -- cgit v1.2.3-54-g00ecf