From 5b973282de54ad5b1a53326d4cd5d5fc8c41a1ad Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 24 Jun 2008 13:47:15 +0000 Subject: (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle_gui.cpp') diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index bce679cfa..398db3eb5 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -219,7 +219,7 @@ static RefitList *BuildRefitList(const Vehicle *v) } } } - } 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; -- cgit v1.2.3-70-g09d2