(svn r15122) -Codechange: add a security assert, to make sure something never happens

This commit is contained in:
truebrain 2009-01-17 15:14:13 +00:00
parent 27717e1b6d
commit 7e8d9a3e66
1 changed files with 1 additions and 0 deletions

View File

@ -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);