src/yapf/follow_track.hpp
changeset 5998 2bfbade143ac
parent 5826 b3f88b8cf0a2
child 6012 065d7234a7a9
--- a/src/yapf/follow_track.hpp	Tue Feb 13 15:44:37 2007 +0000
+++ b/src/yapf/follow_track.hpp	Tue Feb 13 16:36:38 2007 +0000
@@ -197,7 +197,7 @@
 		if (IsRailTT() && m_is_station) {
 			// entered railway station
 			// get platform length
-			uint length = GetPlatformLength(m_new_tile, TrackdirToExitdir(m_old_td));
+			uint length = GetStationByTile(m_new_tile)->GetPlatformLength(m_new_tile, TrackdirToExitdir(m_old_td));
 			// how big step we must do to get to the last platform tile;
 			m_tiles_skipped = length - 1;
 			// move to the platform end