(svn r7072) -Fix (r7070): Go up, not down, through the engines. And replace the comment too...
authorpeter1138
Sun, 05 Nov 2006 22:11:12 +0000
changeset 5030 dec51dbf1380
parent 5029 66c90d197b7b
child 5031 940b1fec4220
(svn r7072) -Fix (r7070): Go up, not down, through the engines. And replace the comment too...
ai/trolly/build.c
--- a/ai/trolly/build.c	Sun Nov 05 21:50:08 2006 +0000
+++ b/ai/trolly/build.c	Sun Nov 05 22:11:12 2006 +0000
@@ -238,8 +238,8 @@
 		EngineID end   = ROAD_ENGINES_INDEX + NUM_ROAD_ENGINES;
 		EngineID i;
 
-		// Let's check it backwards.. we simply want to best engine available..
-		for (i = start; i != end; i--) {
+		/* Loop through all road vehicles */
+		for (i = start; i != end; i++) {
 			const RoadVehicleInfo *rvi = RoadVehInfo(i);
 			const Engine* e = GetEngine(i);
 			int32 rating;