From 5f71c4c6c3ec95e787d6724f9dafd07203fc0d44 Mon Sep 17 00:00:00 2001 From: bjarni Date: Fri, 8 Sep 2006 19:38:12 +0000 Subject: (svn r6430) -Fix r6424: fixed failure to init the whole array of engines when starting a new player --- players.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2