TBTR: Fix refitting of virtual trains costing actual money

pull/128/head
Jonathan G Rennison 5 years ago
parent 4e310567fe
commit a9c4b80d26

@ -528,6 +528,7 @@ CommandCost CmdRefitVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
uint8 num_vehicles = GB(p2, 16, 8);
CommandCost cost = RefitVehicle(v, only_this, num_vehicles, new_cid, new_subtype, flags, auto_refit);
if (is_virtual_train) cost.MultiplyCost(0);
if (flags & DC_EXEC) {
/* Update the cached variables */

Loading…
Cancel
Save