mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r15122) -Codechange: add a security assert, to make sure something never happens
This commit is contained in:
parent
002427eab9
commit
ef75a7af90
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user