summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-12-22 20:43:25 +0000
committeralberth <alberth@openttd.org>2009-12-22 20:43:25 +0000
commit3323d64f280cea84addc96d0018adaf93bb4e43b (patch)
tree3b19aa044205e1e454be4842a12f956840d49b0b /src/build_vehicle_gui.cpp
parent7dbc77a1e74be00f520e84fa1605a9ba42a05879 (diff)
downloadopenttd-3323d64f280cea84addc96d0018adaf93bb4e43b.tar.xz
(svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes.
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index 9a8bb4320..50a1ffd49 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -817,7 +817,7 @@ struct BuildVehicleWindow : Window {
/* If we are just viewing the list of vehicles, we do not need the Build button.
* So we just hide it, and enlarge the Rename buton by the now vacant place. */
- if (this->listview_mode) this->GetWidget<NWidgetStacked>(BUILD_VEHICLE_WIDGET_BUILD_SEL)->SetDisplayedPlane(STACKED_SELECTION_ZERO_SIZE);
+ if (this->listview_mode) this->GetWidget<NWidgetStacked>(BUILD_VEHICLE_WIDGET_BUILD_SEL)->SetDisplayedPlane(SZSP_NONE);
NWidgetCore *widget = this->GetWidget<NWidgetCore>(BUILD_VEHICLE_WIDGET_LIST);
widget->tool_tip = STR_BUY_VEHICLE_TRAIN_LIST_TOOLTIP + type;