TBTR: Relax assert restriction on new train in TransferCargoForTrain

This commit is contained in:
Jonathan G Rennison
2020-07-06 17:21:24 +01:00
parent c6f2edda06
commit caa0f6a044

View File

@@ -394,7 +394,7 @@ CommandCost TestBuyAllTemplateVehiclesInChain(TemplateVehicle *tv, TileIndex til
*/ */
void TransferCargoForTrain(Train *old_veh, Train *new_head) void TransferCargoForTrain(Train *old_veh, Train *new_head)
{ {
assert(new_head->IsPrimaryVehicle()); assert(new_head->IsPrimaryVehicle() || new_head->IsFreeWagon());
CargoID _cargo_type = old_veh->cargo_type; CargoID _cargo_type = old_veh->cargo_type;
byte _cargo_subtype = old_veh->cargo_subtype; byte _cargo_subtype = old_veh->cargo_subtype;