(svn r4415) Fix bug introduced in r4384 where drawing a default waypoint for the GUI
authorpeter1138
Fri, 14 Apr 2006 16:28:24 +0000
changeset 3549 305bfac8b7d8
parent 3548 a3dd186755b6
child 3550 5887de7bd4ee
(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.
rail_cmd.c
--- a/rail_cmd.c	Fri Apr 14 15:58:38 2006 +0000
+++ b/rail_cmd.c	Fri Apr 14 16:28:24 2006 +0000
@@ -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;