diff --git a/src/tbtr_template_vehicle_func.cpp b/src/tbtr_template_vehicle_func.cpp index c0c08a5f56..ec46805550 100644 --- a/src/tbtr_template_vehicle_func.cpp +++ b/src/tbtr_template_vehicle_func.cpp @@ -394,7 +394,7 @@ CommandCost TestBuyAllTemplateVehiclesInChain(TemplateVehicle *tv, TileIndex til */ 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; byte _cargo_subtype = old_veh->cargo_subtype;