summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-17 15:14:13 +0000
committertruebrain <truebrain@openttd.org>2009-01-17 15:14:13 +0000
commit7e8d9a3e667385113636cfc09d7cab4887591cf7 (patch)
treef58c4fcc4068ab8922c8e88bfe5f46c4870d8835 /src/ai
parent27717e1b6d7e6bde1607cf22730a983d81e866fa (diff)
downloadopenttd-7e8d9a3e667385113636cfc09d7cab4887591cf7.tar.xz
(svn r15122) -Codechange: add a security assert, to make sure something never happens
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_core.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp
index 406b2ecbd..3ea06c0c6 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);