(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.

This commit is contained in:
rubidium
2008-05-08 11:50:34 +00:00
parent 51cda2252c
commit 92aac531c2
28 changed files with 75 additions and 76 deletions

View File

@@ -752,7 +752,7 @@ void ShowBuildRailToolbar(RailType railtype, int button)
if (button < 0 || !(w = FindWindowById(WC_BUILD_TOOLBAR, TRANSPORT_RAIL))) {
DeleteWindowByClass(WC_BUILD_TOOLBAR);
_cur_railtype = railtype;
w = AllocateWindowDescFront(&_build_rail_desc, TRANSPORT_RAIL);
w = AllocateWindowDescFront<Window>(&_build_rail_desc, TRANSPORT_RAIL);
SetupRailToolbar(railtype, w);
}