(svn r18119) -Codechange/Fix: always call OnResize so the matrices/scrollbars are initialised without the need for duplicating the OnResize code

This commit is contained in:
rubidium
2009-11-16 16:42:04 +00:00
parent 5589792d0c
commit e7dd53dffc
3 changed files with 5 additions and 18 deletions

View File

@@ -837,9 +837,6 @@ struct BuildVehicleWindow : Window {
this->FinishInitNested(desc, tile == INVALID_TILE ? (int)type : tile);
/* Update the scrollbars/matrix 'definitions' */
this->OnResize();
this->eng_list.ForceRebuild();
this->GenerateBuildList(); // generate the list, since we need it in the next line
/* Select the first engine in the list as default when opening the window */