summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-08 11:50:34 +0000
committerrubidium <rubidium@openttd.org>2008-05-08 11:50:34 +0000
commit92aac531c2fdc3e58c108a35e66f723360f46a9a (patch)
tree23ad171b2093a5c5980b9d912bf60056102af9fa /src/industry_gui.cpp
parent51cda2252ceb088d75f25074f1e83e8eec5f18b6 (diff)
downloadopenttd-92aac531c2fdc3e58c108a35e66f723360f46a9a.tar.xz
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 2f1f10f79..261c8d1cd 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -395,7 +395,7 @@ static const WindowDesc _build_industry_dynamic_desc = {
void ShowBuildIndustryWindow()
{
if (_game_mode != GM_EDITOR && !IsValidPlayer(_current_player)) return;
- AllocateWindowDescFront(&_build_industry_dynamic_desc, 0);
+ AllocateWindowDescFront<Window>(&_build_industry_dynamic_desc, 0);
}
static void UpdateIndustryProduction(Industry *i);
@@ -636,7 +636,7 @@ static const WindowDesc _industry_view_desc = {
void ShowIndustryViewWindow(int industry)
{
- Window *w = AllocateWindowDescFront(&_industry_view_desc, industry);
+ Window *w = AllocateWindowDescFront<Window>(&_industry_view_desc, industry);
if (w != NULL) {
w->flags4 |= WF_DISABLE_VP_SCROLL;
@@ -902,7 +902,7 @@ static const WindowDesc _industry_directory_desc = {
void ShowIndustryDirectory()
{
- Window *w = AllocateWindowDescFront(&_industry_directory_desc, 0);
+ Window *w = AllocateWindowDescFront<Window>(&_industry_directory_desc, 0);
if (w != NULL) {
w->vscroll.cap = 16;