changeset 2572:bc0a42fb66cc draft

(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES
author peter1138 <peter1138@openttd.org>
date Mon, 31 Oct 2005 11:22:52 +0000
parents c9be1764f79d
children c9af1fada8f1
files openttd.c players.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/openttd.c
+++ b/openttd.c
@@ -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
+++ b/players.c
@@ -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;