1
0
Fork 0

(svn r12451) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops

release/0.7
peter1138 2008-03-27 19:02:18 +00:00
parent 7df7a3069c
commit 5ddb78af9f
1 changed files with 1 additions and 1 deletions

View File

@ -2460,7 +2460,7 @@ static EngineID AiFindBestWagon(CargoID cargo, RailType railtype)
uint16 best_speed = 0; uint16 best_speed = 0;
uint speed; uint speed;
for (i = 0; i < NUM_TRAIN_ENGINES; i++) { FOR_ALL_ENGINEIDS_OF_TYPE(i, VEH_TRAIN) {
const RailVehicleInfo *rvi = RailVehInfo(i); const RailVehicleInfo *rvi = RailVehInfo(i);
const Engine* e = GetEngine(i); const Engine* e = GetEngine(i);