TBTR: Fix refitting of virtual trains costing actual money

This commit is contained in:
Jonathan G Rennison
2019-12-17 17:09:58 +00:00
parent 4e310567fe
commit a9c4b80d26

View File

@@ -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 */