(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES
authorpeter1138
Mon, 31 Oct 2005 11:22:52 +0000
changeset 2572 18e7b1e388d9
parent 2571 550a7d323ced
child 2573 7a1e72905161
(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES
openttd.c
players.c
--- a/openttd.c	Mon Oct 31 10:23:58 2005 +0000
+++ b/openttd.c	Mon Oct 31 11:22:52 2005 +0000
@@ -1283,7 +1283,7 @@
 	if (version < 0x1000) {
 		int i;
 		FOR_ALL_PLAYERS(p) {
-			for (i = 0; i < 256; i++) {
+			for (i = 0; i < TOTAL_NUM_ENGINES; i++) {
 				p->engine_replacement[i] = INVALID_ENGINE;
 			}
 			p->engine_renew = false;
--- a/players.c	Mon Oct 31 10:23:58 2005 +0000
+++ b/players.c	Mon Oct 31 11:22:52 2005 +0000
@@ -494,7 +494,7 @@
 	p->face = Random();
 
 	/* Engine renewal settings */
-	for (i = 0; i < 256; i++)
+	for (i = 0; i < TOTAL_NUM_ENGINES; i++)
 		p->engine_replacement[i] = INVALID_ENGINE;
 
 	p->engine_renew = false;