summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-21 07:57:51 +0000
committerrubidium <rubidium@openttd.org>2008-04-21 07:57:51 +0000
commitc332c6817058a2815800cf9c0ccf587f4f967c8e (patch)
treecaa819bce7f09d94f46dd0dd0fc79f4a6ebbd008 /src
parent4395bda7b508760836477c81b9ad3855c272306b (diff)
downloadopenttd-c332c6817058a2815800cf9c0ccf587f4f967c8e.tar.xz
(svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often.
Diffstat (limited to 'src')
-rw-r--r--src/toolbar_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 83aef3bfe..d2d264793 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -1417,8 +1417,7 @@ static Window *PopupMainPlayerToolbMenu(Window *w, int main_button, int gray)
Window *AllocateToolbar()
{
- /* Clean old GUI values */
- _last_built_railtype = RAILTYPE_RAIL;
+ /* Clean old GUI values; railtype is (re)set by rail_gui.cpp */
_last_built_roadtype = ROADTYPE_ROAD;
Window *w = AllocateWindowDesc((_game_mode != GM_EDITOR) ? &_toolb_normal_desc : &_toolb_scen_desc);