From bbd9facb44dc09ded5500918319b770c63c0a981 Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 23:21:13 +0000 Subject: (svn r23358) -Codechange: move AI_FatalError to Script_FatalError (and to its own file) --- src/script/api/script_controller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/script/api/script_controller.cpp') diff --git a/src/script/api/script_controller.cpp b/src/script/api/script_controller.cpp index 163335f3d..bc6d060fd 100644 --- a/src/script/api/script_controller.cpp +++ b/src/script/api/script_controller.cpp @@ -20,6 +20,7 @@ #include "../../ai/ai_instance.hpp" #include "../../ai/ai_config.hpp" #include "../../ai/ai.hpp" +#include "../script_fatalerror.hpp" #include "script_log.hpp" /* static */ void ScriptController::SetCommandDelay(int ticks) @@ -31,7 +32,7 @@ /* static */ void ScriptController::Sleep(int ticks) { if (!ScriptObject::CanSuspend()) { - throw AI_FatalError("You are not allowed to call Sleep in your constructor, Save(), Load(), and any valuator."); + throw Script_FatalError("You are not allowed to call Sleep in your constructor, Save(), Load(), and any valuator."); } if (ticks <= 0) { -- cgit v1.2.3-54-g00ecf