1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-17 11:39:11 +00:00

(svn r6430) -Fix r6424: fixed failure to init the whole array of engines when starting a new player

This commit is contained in:
bjarni
2006-09-08 19:38:12 +00:00
parent c582499bde
commit 5f71c4c6c3

View File

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