(svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often.
authorrubidium
Mon, 21 Apr 2008 07:57:51 +0000
changeset 10281 85a77bfe5614
parent 10278 f0fbbccb931d
child 10282 bd9c075efe67
(svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often.
src/toolbar_gui.cpp
--- a/src/toolbar_gui.cpp	Sun Apr 20 21:49:57 2008 +0000
+++ b/src/toolbar_gui.cpp	Mon Apr 21 07:57:51 2008 +0000
@@ -1417,8 +1417,7 @@
 
 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);