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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
peter1138 16 years ago
parent f92fbaa548
commit dba9d60d3a

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

Loading…
Cancel
Save