(svn r18812) -Codechange: make some functions in train.h functions of Train.

This commit is contained in:
rubidium
2010-01-15 18:23:52 +00:00
parent 7acb21987b
commit ea240269dc
10 changed files with 84 additions and 80 deletions

View File

@@ -125,7 +125,7 @@ static void TransferCargo(Vehicle *old_veh, Vehicle *new_head, bool part_of_chai
}
/* Update train weight etc., the old vehicle will be sold anyway */
if (part_of_chain && new_head->type == VEH_TRAIN) TrainConsistChanged(Train::From(new_head), true);
if (part_of_chain && new_head->type == VEH_TRAIN) Train::From(new_head)->ConsistChanged(true);
}
/**