summaryrefslogtreecommitdiff
path: root/src/script/api/script_execmode.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-29 23:21:13 +0000
committertruebrain <truebrain@openttd.org>2011-11-29 23:21:13 +0000
commitbbd9facb44dc09ded5500918319b770c63c0a981 (patch)
treee0aec49e211484cb1235fcbf1689de5b86dd2dda /src/script/api/script_execmode.cpp
parent99cb93ef6faf7e89720ca0caf5536bb488be990e (diff)
downloadopenttd-bbd9facb44dc09ded5500918319b770c63c0a981.tar.xz
(svn r23358) -Codechange: move AI_FatalError to Script_FatalError (and to its own file)
Diffstat (limited to 'src/script/api/script_execmode.cpp')
-rw-r--r--src/script/api/script_execmode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/api/script_execmode.cpp b/src/script/api/script_execmode.cpp
index 23f4c683d..e0481b25b 100644
--- a/src/script/api/script_execmode.cpp
+++ b/src/script/api/script_execmode.cpp
@@ -14,6 +14,7 @@
#include "../../company_base.h"
#include "../../company_func.h"
#include "../../ai/ai_instance.hpp"
+#include "../script_fatalerror.hpp"
bool ScriptExecMode::ModeProc()
{
@@ -34,7 +35,7 @@ ScriptExecMode::~ScriptExecMode()
if (this->GetDoCommandModeInstance() != this) {
/* Ignore this error if the AI already died. */
if (!ScriptObject::GetActiveInstance()->IsDead()) {
- throw AI_FatalError("ScriptExecMode object was removed while it was not the latest AI*Mode object created.");
+ throw Script_FatalError("ScriptExecMode object was removed while it was not the latest AI*Mode object created.");
}
}
this->SetDoCommandMode(this->last_mode, this->last_instance);