(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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user