summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-19 10:19:15 +0000
committerrubidium <rubidium@openttd.org>2009-09-19 10:19:15 +0000
commit9d7fe9bd8688f2d4123dc98e2b222a5be70b306f (patch)
tree98a257c0ebfe3c31f73aed08d8b3ce9566423862 /src/town_gui.cpp
parente8ddf001c87790cde6e03e9ca47714b6fc30266c (diff)
downloadopenttd-9d7fe9bd8688f2d4123dc98e2b222a5be70b306f.tar.xz
(svn r17571) -Fix [FS#3213] (r17569): town view didn't show the right town in most of the cases
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 11d3446eb..d921e30ff 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -270,7 +270,7 @@ public:
{
this->CreateNestedTree(desc);
- this->town = Town::Get(this->window_number);
+ this->town = Town::Get(window_number);
if (this->town->larger_town) this->nested_array[TVW_CAPTION]->widget_data = STR_TOWN_VIEW_CITY_CAPTION;
this->FinishInitNested(desc, window_number);