mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r17571) -Fix [FS#3213] (r17569): town view didn't show the right town in most of the cases
This commit is contained in:
parent
e8ddf001c8
commit
9d7fe9bd86
|
@ -270,7 +270,7 @@ public:
|
||||||
{
|
{
|
||||||
this->CreateNestedTree(desc);
|
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;
|
if (this->town->larger_town) this->nested_array[TVW_CAPTION]->widget_data = STR_TOWN_VIEW_CITY_CAPTION;
|
||||||
|
|
||||||
this->FinishInitNested(desc, window_number);
|
this->FinishInitNested(desc, window_number);
|
||||||
|
|
Loading…
Reference in New Issue