(svn r13622) -Fix [FS#2109]: only the front of a RV would be considered when determining to what cargos a vehicle can be refitted instead of all cargos.
authorrubidium
Tue, 24 Jun 2008 13:47:15 +0000
changeset 11065 d322c7fa3a22
parent 11064 7ebca843450b
child 11066 942b9b820006
(svn r13622) -Fix [FS#2109]: only the front of a RV would be considered when determining to what cargos a vehicle can be refitted instead of all cargos.
src/vehicle_gui.cpp
--- a/src/vehicle_gui.cpp	Tue Jun 24 11:42:01 2008 +0000
+++ b/src/vehicle_gui.cpp	Tue Jun 24 13:47:15 2008 +0000
@@ -219,7 +219,7 @@
 				}
 			}
 		}
-	} while (v->type == VEH_TRAIN && (u = u->Next()) != NULL && num_lines < max_lines);
+	} while ((v->type == VEH_TRAIN || v->type == VEH_ROAD) && (u = u->Next()) != NULL && num_lines < max_lines);
 
 	list->num_lines = num_lines;
 	list->items = refit;