Changeset - r5303:2af6fb4b5d56
[Not reviewed]
master
0 1 0
glx - 18 years ago 2006-12-09 20:14:26
glx@openttd.org
(svn r7459) -Fix: make sure TrainConsistChanged() is called for the first vehicle of a chain after reffiting
because free wagons present in depot can have the same type as the one bought and refitted by autoreplace
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -1892,7 +1892,7 @@ int32 CmdRefitRailVehicle(TileIndex tile
 
	_returned_refit_capacity = num;
 

	
 
	/* Update the train's cached variables */
 
	if (flags & DC_EXEC) TrainConsistChanged(GetVehicle(p1));
 
	if (flags & DC_EXEC) TrainConsistChanged(GetFirstVehicleInChain(GetVehicle(p1)));
 

	
 
	return cost;
 
}
0 comments (0 inline, 0 general)