diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp index 2bd2c9c744..f97896eb93 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 */