mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Tweaked depth check, Resolved #23
This commit is contained in:
@@ -997,8 +997,8 @@ static void readInterpreterSections(Interpreter* interpreter);
|
||||
|
||||
static bool execFnCall(Interpreter* interpreter, bool looseFirstArgument) {
|
||||
//BUGFIX: depth check - don't drown!
|
||||
if (interpreter->depth >= 1000) {
|
||||
interpreter->errorOutput("Depth check failed\n");
|
||||
if (interpreter->depth >= 200) {
|
||||
interpreter->errorOutput("Infinite recursion detected - panicking\n");
|
||||
interpreter->panic = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user