--- a/src/road_gui.cpp Sun May 04 08:56:59 2008 +0000
+++ b/src/road_gui.cpp Sun May 04 09:39:16 2008 +0000
@@ -682,8 +682,8 @@
if (!IsValidPlayer(_current_player)) return;
_cur_roadtype = roadtype;
- DeleteWindowById(WC_BUILD_TOOLBAR, 0);
- Window *w = AllocateWindowDesc(roadtype == ROADTYPE_ROAD ? &_build_road_desc : &_build_tramway_desc);
+ DeleteWindowByClass(WC_BUILD_TOOLBAR);
+ Window *w = AllocateWindowDescFront(roadtype == ROADTYPE_ROAD ? &_build_road_desc : &_build_tramway_desc, TRANSPORT_ROAD);
if (_patches.link_terraform_toolbar) ShowTerraformToolbar(w);
}