1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 00:49:11 +00:00

(svn r15133) -Fix: Crash if no NoAIs are present.

This commit is contained in:
2009-01-17 22:22:53 +00:00
parent f92fbaa548
commit dba9d60d3a

View File

@@ -247,7 +247,7 @@ void AIInstance::Died()
DEBUG(ai, 0, "The AI died unexpectedly.");
this->is_dead = true;
this->engine->ReleaseObject(this->instance);
if (this->instance != NULL) this->engine->ReleaseObject(this->instance);
delete this->engine;
this->instance = NULL;
this->engine = NULL;