mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r15133) -Fix: Crash if no NoAIs are present.
This commit is contained in:
parent
f27e683492
commit
6644fa86ee
@ -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…
Reference in New Issue
Block a user