summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-10-31 11:22:52 +0000
committerpeter1138 <peter1138@openttd.org>2005-10-31 11:22:52 +0000
commit8d4031a5709cfaaa95d067fcb6933b520b98e021 (patch)
treedcac8f1e44fd8ac05c838297c41a1c3df696a9e4 /openttd.c
parent3a925e230f0346a7076f3938f38fb82ec20adbc8 (diff)
downloadopenttd-8d4031a5709cfaaa95d067fcb6933b520b98e021.tar.xz
(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c2
1 files changed, 1 insertions, 1 deletions
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;