summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index af2a8f25e..6b80ab81b 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -32,6 +32,8 @@
#include "road_map.h"
#include "station_map.h"
#include "tunnel_map.h"
+#include "tunnelbridge_map.h"
+
static RailType _cur_railtype;
static bool _remove_button_clicked;
@@ -1523,8 +1525,8 @@ void SetDefaultRailGui()
if (IsTileType(t, MP_RAILWAY) ||
IsLevelCrossingTile(t) ||
IsRailwayStationTile(t) ||
- (IsTunnelTile(t) && GetTunnelTransportType(t) == TRANSPORT_RAIL) ||
- (IsBridgeTile(t) && GetBridgeTransportType(t) == TRANSPORT_RAIL)
+ (IsTunnelTile(t) && GetTunnelBridgeTransportType(t) == TRANSPORT_RAIL) ||
+ (IsBridgeTile(t) && GetTunnelBridgeTransportType(t) == TRANSPORT_RAIL)
) {
count[GetRailType(t)]++;
}