From 0b2dd2c5cd39833945fcea3a39811898bf40c6b5 Mon Sep 17 00:00:00 2001 From: Rasmus Jonsson Date: Sun, 18 Oct 2020 10:46:24 +0200 Subject: Fix: [NoAI] don't notify caught exceptions --- src/script/squirrel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script') diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp index 2bd2c9c74..f97896eb9 100644 --- a/src/script/squirrel.cpp +++ b/src/script/squirrel.cpp @@ -478,7 +478,7 @@ void Squirrel::Initialize() /* Handle compile-errors ourself, so we can display it nicely */ sq_setcompilererrorhandler(this->vm, &Squirrel::CompileError); - sq_notifyallexceptions(this->vm, SQTrue); + sq_notifyallexceptions(this->vm, _debug_script_level > 5); /* Set a good print-function */ sq_setprintfunc(this->vm, &Squirrel::PrintFunc); /* Handle runtime-errors ourself, so we can display it nicely */ -- cgit v1.2.3-70-g09d2