# HG changeset patch # User peter1138 # Date 2006-10-02 22:10:04 # Node ID dc808bf3ddb751dee24a420db2412f963ae0be43 # Parent fb52f3f910e93cb71c9f0bfec2ff4f9e33a8d088 (svn r6618) - After refitting a train, update its cached variables as they may change. diff --git a/train_cmd.c b/train_cmd.c --- a/train_cmd.c +++ b/train_cmd.c @@ -1842,6 +1842,9 @@ int32 CmdRefitRailVehicle(TileIndex tile _returned_refit_capacity = num; + /* Update the train's cached variables */ + if (flags & DC_EXEC) TrainConsistChanged(GetVehicle(p1)); + return cost; }