diff options
author | rubidium <rubidium@openttd.org> | 2008-05-08 11:50:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-08 11:50:34 +0000 |
commit | 92aac531c2fdc3e58c108a35e66f723360f46a9a (patch) | |
tree | 23ad171b2093a5c5980b9d912bf60056102af9fa /src/road_gui.cpp | |
parent | 51cda2252ceb088d75f25074f1e83e8eec5f18b6 (diff) | |
download | openttd-92aac531c2fdc3e58c108a35e66f723360f46a9a.tar.xz |
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r-- | src/road_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index adad95164..07a6f1d0e 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -679,7 +679,7 @@ void ShowBuildRoadToolbar(RoadType roadtype) _cur_roadtype = roadtype; DeleteWindowByClass(WC_BUILD_TOOLBAR); - Window *w = AllocateWindowDescFront(roadtype == ROADTYPE_ROAD ? &_build_road_desc : &_build_tramway_desc, TRANSPORT_ROAD); + Window *w = AllocateWindowDescFront<Window>(roadtype == ROADTYPE_ROAD ? &_build_road_desc : &_build_tramway_desc, TRANSPORT_ROAD); if (_patches.link_terraform_toolbar) ShowTerraformToolbar(w); } @@ -714,7 +714,7 @@ static const WindowDesc _build_road_scen_desc = { void ShowBuildRoadScenToolbar() { _cur_roadtype = ROADTYPE_ROAD; - AllocateWindowDescFront(&_build_road_scen_desc, 0); + AllocateWindowDescFront<Window>(&_build_road_scen_desc, 0); } /** Enum referring to the widgets of the build road depot window */ |