(svn r23746) -Fix: also set 'info' to NULL if 'instance' dies (for both AI and GS); avoids invalid memory reads

This commit is contained in:
truebrain 2012-01-03 23:09:48 +00:00
parent 00ec5da361
commit 251687f795
2 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,7 @@
delete c->ai_instance;
c->ai_instance = NULL;
c->ai_info = NULL;
cur_company.Restore();

View File

@ -94,6 +94,7 @@
delete Game::instance;
Game::instance = NULL;
Game::info = NULL;
cur_company.Restore();