From 7e8d9a3e667385113636cfc09d7cab4887591cf7 Mon Sep 17 00:00:00 2001 From: truebrain Date: Sat, 17 Jan 2009 15:14:13 +0000 Subject: [PATCH] (svn r15122) -Codechange: add a security assert, to make sure something never happens --- src/ai/ai_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp index 406b2ecbd1..3ea06c0c67 100644 --- a/src/ai/ai_core.cpp +++ b/src/ai/ai_core.cpp @@ -47,6 +47,7 @@ Company *c = GetCompany(company); c->ai_info = info; + assert(c->ai_instance == NULL); c->ai_instance = new AIInstance(info); InvalidateWindowData(WC_AI_DEBUG, 0, -1);