mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
47933d2ddb
commit
5b973282de
|
@ -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->num_lines = num_lines;
|
||||||
list->items = refit;
|
list->items = refit;
|
||||||
|
|
Loading…
Reference in New Issue