(svn r6618) - After refitting a train, update its cached variables as they may change.

This commit is contained in:
peter1138 2006-10-02 22:10:04 +00:00
parent 2b5436d42f
commit e383584988
1 changed files with 3 additions and 0 deletions

View File

@ -1842,6 +1842,9 @@ int32 CmdRefitRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
_returned_refit_capacity = num;
/* Update the train's cached variables */
if (flags & DC_EXEC) TrainConsistChanged(GetVehicle(p1));
return cost;
}