(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 002427eab9
commit ef75a7af90

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