summaryrefslogtreecommitdiff
path: root/src/script/api/script_testmode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_testmode.cpp')
-rw-r--r--src/script/api/script_testmode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/api/script_testmode.cpp b/src/script/api/script_testmode.cpp
index 87b4aea57..184a8795c 100644
--- a/src/script/api/script_testmode.cpp
+++ b/src/script/api/script_testmode.cpp
@@ -14,6 +14,7 @@
#include "../../company_base.h"
#include "../../company_func.h"
#include "../../ai/ai_instance.hpp"
+#include "../script_fatalerror.hpp"
bool ScriptTestMode::ModeProc()
{
@@ -34,7 +35,7 @@ ScriptTestMode::~ScriptTestMode()
if (this->GetDoCommandModeInstance() != this) {
/* Ignore this error if the AI already died. */
if (!ScriptObject::GetActiveInstance()->IsDead()) {
- throw AI_FatalError("AITestmode object was removed while it was not the latest AI*Mode object created.");
+ throw Script_FatalError("AITestmode object was removed while it was not the latest AI*Mode object created.");
}
}
this->SetDoCommandMode(this->last_mode, this->last_instance);