1
0
Fork 0

(svn r16739) -Codechange: Initialize internal data before computing the widgets.

release/1.0
alberth 2009-07-04 14:13:23 +00:00
parent c7c422465a
commit 2385aeae3c
1 changed files with 4 additions and 5 deletions

View File

@ -588,15 +588,14 @@ private:
public:
TownDirectoryWindow(const WindowDesc *desc) : Window()
{
this->townline_height = FONT_HEIGHT_NORMAL;
this->InitNested(desc, 0);
this->vscroll.cap = this->nested_array[TDW_CENTERTOWN]->current_y / this->resize.step_height;
this->towns.SetListing(this->last_sorting);
this->towns.SetSortFuncs(this->sorter_funcs);
this->towns.ForceRebuild();
this->BuildSortTownList();
this->townline_height = FONT_HEIGHT_NORMAL;
this->InitNested(desc, 0);
this->vscroll.cap = this->nested_array[TDW_CENTERTOWN]->current_y / this->resize.step_height;
}
~TownDirectoryWindow()