summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rail_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 10db2d61d..ff113c69a 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -175,7 +175,7 @@ static void GenericPlaceSignals(TileIndex tile)
trackbits = (_tile_fract_coords.x + _tile_fract_coords.y <= 15) ? TRACK_BIT_UPPER : TRACK_BIT_LOWER;
}
- Track track = TrackBitsToTrack(trackbits);
+ Track track = FindFirstTrack(trackbits);
if (!_remove_button_clicked) {
uint32 p1 = track;