summaryrefslogtreecommitdiff
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
commitef75a7af90d9ed2fbcb13d7511d93ff44f4c0cf8 (patch)
treef58c4fcc4068ab8922c8e88bfe5f46c4870d8835
parent002427eab96275bd2f68433819a5e2799f66c925 (diff)
downloadopenttd-ef75a7af90d9ed2fbcb13d7511d93ff44f4c0cf8.tar.xz
(svn r15122) -Codechange: add a security assert, to make sure something never happens
-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);