summaryrefslogtreecommitdiff
path: root/src
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
commitb60434eb0dc880e06872cf987b0cb30b590f8025 (patch)
treecae3cce1c96f77f47a22f8b3ed7c4b847cb68f4e /src
parentd5d902490a22bb25ee36a2616fabd566b5a5af35 (diff)
downloadopenttd-b60434eb0dc880e06872cf987b0cb30b590f8025.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')
-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;
}