mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(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.
This commit is contained in:
parent
da1f310034
commit
96246126e1
@ -1407,7 +1407,7 @@ void DrawTrainDepotSprite(int x, int y, int image, RailType railtype)
|
|||||||
|
|
||||||
void DrawDefaultWaypointSprite(int x, int y, 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);
|
const RailtypeInfo *rti = GetRailTypeInfo(railtype);
|
||||||
uint32 img;
|
uint32 img;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user