summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-24 13:28:18 +0000
committerrubidium <rubidium@openttd.org>2009-11-24 13:28:18 +0000
commite57d6a8e48b1189ae54dcd387e5f35a2fe1da460 (patch)
tree72b74a433b163192c37ed8f20cfe3027edbc7d14 /src
parentd507136e04432c420bbf48bb322c22335bc0dbfa (diff)
downloadopenttd-e57d6a8e48b1189ae54dcd387e5f35a2fe1da460.tar.xz
(svn r18269) -Fix [FS#3326]: crash because there was no (hidden) one way widget for the tram toolbar
Diffstat (limited to 'src')
-rw-r--r--src/road_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 7f1533fa0..462fa24fe 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -692,6 +692,7 @@ static const NWidgetPart _nested_build_tramway_widgets[] = {
NWidget(WWT_IMGBTN, COLOUR_DARK_GREEN, RTW_TRUCK_STATION),
SetFill(0, 1), SetMinimalSize(22, 22), SetDataTip(SPR_IMG_TRUCK_BAY, STR_ROAD_TOOLBAR_TOOLTIP_BUILD_CARGO_TRAM_STATION),
NWidget(WWT_PANEL, COLOUR_DARK_GREEN, -1), SetMinimalSize(0, 22), SetFill(1, 1), EndContainer(),
+ NWidget(WWT_EMPTY, COLOUR_DARK_GREEN, RTW_ONE_WAY), SetMinimalSize(0, 0),
NWidget(WWT_IMGBTN, COLOUR_DARK_GREEN, RTW_BUILD_BRIDGE),
SetFill(0, 1), SetMinimalSize(43, 22), SetDataTip(SPR_IMG_BRIDGE, STR_ROAD_TOOLBAR_TOOLTIP_BUILD_TRAMWAY_BRIDGE),
NWidget(WWT_IMGBTN, COLOUR_DARK_GREEN, RTW_BUILD_TUNNEL),