diff options
author | peter1138 <peter1138@openttd.org> | 2008-02-04 11:28:12 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-02-04 11:28:12 +0000 |
commit | a528dc89c7a93fd6ee17498129a6148cd97964ed (patch) | |
tree | f7db516aadbc810aeb4f07d3c76ab35a6ed475b3 /src/depot_gui.cpp | |
parent | 2588879c6d266741b1a9f6a38593d8a3a717a760 (diff) | |
download | openttd-a528dc89c7a93fd6ee17498129a6148cd97964ed.tar.xz |
(svn r12054) -Cleanup: Use VehicleType instead of byte for vehicle types...
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 97ca253d7..98097817c 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -519,9 +519,11 @@ static void ResizeDepotButtons(Window *w) * Only use this if it's the same widget, that's used for more than one vehicle type and it needs different text/sprites * Vehicle specific text/sprites, that's in a widget, that's only shown for one vehicle type (like sell whole train) is set in the widget array */ -static void SetupStringsForDepotWindow(Window *w, byte type) +static void SetupStringsForDepotWindow(Window *w, VehicleType type) { switch (type) { + default: NOT_REACHED(); + case VEH_TRAIN: w->widget[DEPOT_WIDGET_CAPTION].data = STR_8800_TRAIN_DEPOT; w->widget[DEPOT_WIDGET_STOP_ALL].tooltips = STR_MASS_STOP_DEPOT_TRAIN_TIP; |