(svn r3250) -Fix: AIs weren't uninitialized when a new game was loaded

This commit is contained in:
truelight
2005-11-30 16:10:19 +00:00
parent 9e142209fc
commit a518f81093
2 changed files with 5 additions and 0 deletions

View File

@@ -309,6 +309,9 @@ void AI_Initialize(void)
char *tmp_ai_gpmi_param = strdup(_ai.gpmi_param);
#endif /* GPMI */
/* First, make sure all AIs are DEAD! */
AI_Uninitialize();
memset(&_ai, 0, sizeof(_ai));
memset(&_ai_player, 0, sizeof(_ai_player));