changeset 3549:003ca49d2934 draft

(svn r4415) Fix bug introduced in r4384 where drawing a default waypoint for the GUI caused a game crash. This only manifested with some newstations loaded. Thanks to Richk67 for finding this.
author peter1138 <peter1138@openttd.org>
date Fri, 14 Apr 2006 16:28:24 +0000
parents 8c180b85d5d1
children 33c917e8a658
files rail_cmd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1407,7 +1407,7 @@
 
 void DrawDefaultWaypointSprite(int x, int y, RailType railtype)
 {
-	const DrawTrackSeqStruct *dtss = _track_depot_layout_table[4];
+	const DrawTrackSeqStruct *dtss = _track_waypoint_layout_table[0];
 	const RailtypeInfo *rti = GetRailTypeInfo(railtype);
 	uint32 img;