(svn r17230) -Fix (r15027): don't assert when an AI uses AI*Mode objects incorrectly but crash the AI instead

This commit is contained in:
yexo
2009-08-20 10:39:39 +00:00
parent 0960f15c7e
commit 14b5862c22
4 changed files with 33 additions and 3 deletions

View File

@@ -353,6 +353,7 @@ void AIInstance::GameLoop()
this->suspend = e.GetSuspendTime();
this->callback = e.GetSuspendCallback();
} catch (AI_FatalError e) {
this->is_dead = true;
this->engine->ThrowError(e.GetErrorMessage());
this->engine->ResumeError();
this->Died();
@@ -373,6 +374,7 @@ void AIInstance::GameLoop()
this->suspend = e.GetSuspendTime();
this->callback = e.GetSuspendCallback();
} catch (AI_FatalError e) {
this->is_dead = true;
this->engine->ThrowError(e.GetErrorMessage());
this->engine->ResumeError();
this->Died();