(svn r10337) -Fix [FS#880]: Autoreplace is only valid for the standard vehicle list, not station or shared order lists.
authorpeter1138
Tue, 26 Jun 2007 08:11:11 +0000
changeset 7568 eb041cf7a93e
parent 7567 8723fa633d31
child 7569 8e639c5079a2
(svn r10337) -Fix [FS#880]: Autoreplace is only valid for the standard vehicle list, not station or shared order lists.
src/vehicle_gui.cpp
--- a/src/vehicle_gui.cpp	Tue Jun 26 06:57:14 2007 +0000
+++ b/src/vehicle_gui.cpp	Tue Jun 26 08:11:11 2007 +0000
@@ -1111,7 +1111,7 @@
 
 					/* 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;
 				}