diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-14 16:28:24 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-14 16:28:24 +0000 |
commit | 4118b66322a135a4af2316de5878c8dc713ae52c (patch) | |
tree | b5661a40e901f5f13e25caee28febec02abefd24 /rail_cmd.c | |
parent | 1a1148c24715f958e172d4961b54990dbfea0932 (diff) | |
download | openttd-4118b66322a135a4af2316de5878c8dc713ae52c.tar.xz |
(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.
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index 1c0aee337..e599cb4ae 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1407,7 +1407,7 @@ void DrawTrainDepotSprite(int x, int y, int image, RailType railtype) 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; |