summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-06-26 08:11:11 +0000
committerpeter1138 <peter1138@openttd.org>2007-06-26 08:11:11 +0000
commit8b314ffd1faf9f87251d4706125ab76f42c573c6 (patch)
treecae3cce1c96f77f47a22f8b3ed7c4b847cb68f4e /src/vehicle_gui.cpp
parentdc78cf178c78d4f93933e84dc1eac6f960468d89 (diff)
downloadopenttd-8b314ffd1faf9f87251d4706125ab76f42c573c6.tar.xz
(svn r10337) -Fix [FS#880]: Autoreplace is only valid for the standard vehicle list, not station or shared order lists.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index c7579ec4a..b340c9f88 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -1111,7 +1111,7 @@ void PlayerVehWndProc(Window *w, WindowEvent *e)
/* XXX - Substite string since the dropdown cannot handle dynamic strings */
action_str[2] = depot_name[vl->vehicle_type];
- ShowDropDownMenu(w, action_str, 0, VLW_WIDGET_MANAGE_VEHICLES_DROPDOWN, 0, 0);
+ ShowDropDownMenu(w, action_str, 0, VLW_WIDGET_MANAGE_VEHICLES_DROPDOWN, 0, (w->window_number & VLW_MASK) == VLW_STANDARD ? 0 : 1);
break;
}