openttd.c
changeset 2572 f3ab5cadbdc5
parent 2548 97ada3bd2702
child 2617 a9e1a187de99
--- 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;