diff options
author | bjarni <bjarni@openttd.org> | 2006-09-08 19:38:12 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-09-08 19:38:12 +0000 |
commit | 5f71c4c6c3ec95e787d6724f9dafd07203fc0d44 (patch) | |
tree | 4948a706892232abdb8f4fce0aad4a1d6d03b550 | |
parent | c582499bde0c95433b15a4fe812cedbcb1589af4 (diff) | |
download | openttd-5f71c4c6c3ec95e787d6724f9dafd07203fc0d44.tar.xz |
(svn r6430) -Fix r6424: fixed failure to init the whole array of engines when starting a new player
-rw-r--r-- | players.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |