summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-16 16:42:04 +0000
committerrubidium <rubidium@openttd.org>2009-11-16 16:42:04 +0000
commite7dd53dffcde2d42e99036b7ec4bba3d01e018f9 (patch)
tree23a2482137d651212ff2bb6e25c060fea10c78d9 /src/build_vehicle_gui.cpp
parent5589792d0c33bf99060947a58ebe65fe5dc4d311 (diff)
downloadopenttd-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.cpp3
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 */