diff options
author | rubidium <rubidium@openttd.org> | 2009-11-16 16:42:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-16 16:42:04 +0000 |
commit | e7dd53dffcde2d42e99036b7ec4bba3d01e018f9 (patch) | |
tree | 23a2482137d651212ff2bb6e25c060fea10c78d9 /src/build_vehicle_gui.cpp | |
parent | 5589792d0c33bf99060947a58ebe65fe5dc4d311 (diff) | |
download | openttd-e7dd53dffcde2d42e99036b7ec4bba3d01e018f9.tar.xz |
(svn r18119) -Codechange/Fix: always call OnResize so the matrices/scrollbars are initialised without the need for duplicating the OnResize code
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r-- | src/build_vehicle_gui.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 25b78867d..44818d309 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -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 */ |