summaryrefslogtreecommitdiff
path: root/src/intro_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-05-26 19:23:42 +0000
committerfrosch <frosch@openttd.org>2013-05-26 19:23:42 +0000
commit56e4a8c4d63b19cb037ac1ba64c5a4d7fde4350b (patch)
treef3e5c225182fce7a451af4e09e943920e0f1cc3c /src/intro_gui.cpp
parentb10a4f151aa534860dcc61ecf8cba7b3589e6281 (diff)
downloadopenttd-56e4a8c4d63b19cb037ac1ba64c5a4d7fde4350b.tar.xz
(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction.
Diffstat (limited to 'src/intro_gui.cpp')
-rw-r--r--src/intro_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp
index 1c4235df0..3148b6360 100644
--- a/src/intro_gui.cpp
+++ b/src/intro_gui.cpp
@@ -35,10 +35,10 @@
struct SelectGameWindow : public Window {
- SelectGameWindow(const WindowDesc *desc) : Window()
+ SelectGameWindow(WindowDesc *desc) : Window(desc)
{
- this->CreateNestedTree(desc);
- this->FinishInitNested(desc, 0);
+ this->CreateNestedTree();
+ this->FinishInitNested(0);
this->OnInvalidateData();
}
@@ -246,7 +246,7 @@ static const NWidgetPart _nested_select_game_widgets[] = {
EndContainer(),
};
-static const WindowDesc _select_game_desc(
+static WindowDesc _select_game_desc(
WDP_CENTER, 0, 0,
WC_SELECT_GAME, WC_NONE,
0,