From 480b1575fe5cb677ff2ba1ee183e75863c545ed4 Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 30 Nov 2005 16:10:19 +0000 Subject: (svn r3250) -Fix: AIs weren't uninitialized when a new game was loaded --- ai/ai.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ai') diff --git a/ai/ai.c b/ai/ai.c index 516a86cc6..c186d8051 100644 --- a/ai/ai.c +++ b/ai/ai.c @@ -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)); -- cgit v1.2.3-70-g09d2