diff src/road_gui.cpp @ 5860:dc5ff33e8dda draft

(svn r8436) -Fix -Feature: When linking the terraform toolbar to the build toolbars place them side by side instead of on top of each other
author tron <tron@openttd.org>
date Sun, 28 Jan 2007 10:09:40 +0000
parents 0b68d5a508a2
children 8547517ef719
line wrap: on
line diff
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -329,8 +329,8 @@
 	if (!IsValidPlayer(_current_player)) return;
 
 	DeleteWindowById(WC_BUILD_TOOLBAR, 0);
-	AllocateWindowDesc(&_build_road_desc);
-	if (_patches.link_terraform_toolbar) ShowTerraformToolbar();
+	Window *w = AllocateWindowDesc(&_build_road_desc);
+	if (_patches.link_terraform_toolbar) ShowTerraformToolbar(w);
 }
 
 static const Widget _build_road_scen_widgets[] = {