From 8d4031a5709cfaaa95d067fcb6933b520b98e021 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 31 Oct 2005 11:22:52 +0000 Subject: (svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES --- openttd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openttd.c') diff --git a/openttd.c b/openttd.c index 33e1018af..f6f3a61f6 100644 --- a/openttd.c +++ b/openttd.c @@ -1283,7 +1283,7 @@ bool AfterLoadGame(uint version) 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; -- cgit v1.2.3-54-g00ecf