diff options
author | Rasmus Jonsson <wasmus@zom.bi> | 2020-10-18 10:46:24 +0200 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-12-02 17:11:36 +0000 |
commit | 0b2dd2c5cd39833945fcea3a39811898bf40c6b5 (patch) | |
tree | 2e2f6bc22a12a081739e53f48536b8f43bfcd34b /src/script | |
parent | 06adb9ace308eebed3aaddd4c91cbcfac90de5b1 (diff) | |
download | openttd-0b2dd2c5cd39833945fcea3a39811898bf40c6b5.tar.xz |
Fix: [NoAI] don't notify caught exceptions
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/squirrel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |