diff options
author | peter1138 <peter1138@openttd.org> | 2014-09-28 09:21:51 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2014-09-28 09:21:51 +0000 |
commit | 1748d7ad6b6b5f30039200c7fc42f178d3d84e3d (patch) | |
tree | 36cc64e6ec877787b7970daa6963cf2facd4c3b5 /src | |
parent | 2b9782fd9597995af170300e76d6dc2e7a35ead0 (diff) | |
download | openttd-1748d7ad6b6b5f30039200c7fc42f178d3d84e3d.tar.xz |
(svn r26934) -Fix (r26933): Don't statically initialise non-static variables.
Diffstat (limited to 'src')
-rw-r--r-- | src/engine_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp index afb6b423d..899543c18 100644 --- a/src/engine_gui.cpp +++ b/src/engine_gui.cpp @@ -65,7 +65,7 @@ static const NWidgetPart _nested_engine_preview_widgets[] = { }; struct EnginePreviewWindow : Window { - int vehicle_space = 40; // The space to show the vehicle image + int vehicle_space; // The space to show the vehicle image EnginePreviewWindow(WindowDesc *desc, WindowNumber window_number) : Window(desc) { @@ -93,7 +93,7 @@ struct EnginePreviewWindow : Window { case VEH_SHIP: GetShipSpriteSize( engine, x, y, x_offs, y_offs, image_type); break; case VEH_AIRCRAFT: GetAircraftSpriteSize(engine, x, y, x_offs, y_offs, image_type); break; } - this->vehicle_space = max<int>(this->vehicle_space, y - y_offs); + this->vehicle_space = max<int>(40, y - y_offs); size->width = max(size->width, x - x_offs); SetDParam(0, GetEngineCategoryName(engine)); |