mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r7072) -Fix (r7070): Go up, not down, through the engines. And replace the comment too...
This commit is contained in:
parent
6f290da200
commit
7ab311cd69
|
@ -238,8 +238,8 @@ EngineID AiNew_PickVehicle(Player *p)
|
||||||
EngineID end = ROAD_ENGINES_INDEX + NUM_ROAD_ENGINES;
|
EngineID end = ROAD_ENGINES_INDEX + NUM_ROAD_ENGINES;
|
||||||
EngineID i;
|
EngineID i;
|
||||||
|
|
||||||
// Let's check it backwards.. we simply want to best engine available..
|
/* Loop through all road vehicles */
|
||||||
for (i = start; i != end; i--) {
|
for (i = start; i != end; i++) {
|
||||||
const RoadVehicleInfo *rvi = RoadVehInfo(i);
|
const RoadVehicleInfo *rvi = RoadVehInfo(i);
|
||||||
const Engine* e = GetEngine(i);
|
const Engine* e = GetEngine(i);
|
||||||
int32 rating;
|
int32 rating;
|
||||||
|
|
Loading…
Reference in New Issue