--- 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;