summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
Diffstat (limited to 'players.c')
-rw-r--r--players.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/players.c b/players.c
index 27d8b3329..3d7a46876 100644
--- a/players.c
+++ b/players.c
@@ -520,6 +520,8 @@ 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);
+
return p;
}