summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-08 19:38:12 +0000
committerbjarni <bjarni@openttd.org>2006-09-08 19:38:12 +0000
commitf6719443ade943a67e183043ece35619b98153ff (patch)
tree4948a706892232abdb8f4fce0aad4a1d6d03b550
parent7d9ab2e4e2a229add17f646e348a85d6ae707f3d (diff)
downloadopenttd-f6719443ade943a67e183043ece35619b98153ff.tar.xz
(svn r6430) -Fix r6424: fixed failure to init the whole array of engines when starting a new player
-rw-r--r--players.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/players.c b/players.c
index 3d7a46876..9e7aa8515 100644
--- a/players.c
+++ b/players.c
@@ -520,7 +520,7 @@ Player *DoStartupNewPlayer(bool is_ai)
if (is_ai && (!_networking || _network_server) && _ai.enabled)
AI_StartNewAI(p->index);
- memset(p->num_engines, 0, TOTAL_NUM_ENGINES);
+ memset(p->num_engines, 0, sizeof(p->num_engines));
return p;
}