summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2023-02-17 17:00:46 +0300
committerGitHub <noreply@github.com>2023-02-17 17:00:46 +0300
commit6212da66e859fff7f3522e67045eeb81fcad0296 (patch)
tree52e941a61d1ad406f7aaf250b0f39dd7c80cd9fe /modules/gdscript/gdscript.cpp
parent6e0dd6beca4ac9f62ecf27f33c99d456d5871f7f (diff)
parent34f0a2ca46bda37c49caf0a4e2feb25e1ce9ad4f (diff)
downloadredot-engine-6212da66e859fff7f3522e67045eeb81fcad0296.tar.gz
Merge pull request #72867 from vnen/gdscript-limit-call-depth
GDScript: Add limit to call depth
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r--modules/gdscript/gdscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index fe79f37454..00f8d2817a 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -2563,7 +2563,7 @@ GDScriptLanguage::GDScriptLanguage() {
script_frame_time = 0;
_debug_call_stack_pos = 0;
- int dmcs = GLOBAL_DEF(PropertyInfo(Variant::INT, "debug/settings/gdscript/max_call_stack", PROPERTY_HINT_RANGE, "1024,4096,1,or_greater"), 1024);
+ int dmcs = GLOBAL_DEF(PropertyInfo(Variant::INT, "debug/settings/gdscript/max_call_stack", PROPERTY_HINT_RANGE, "512," + itos(GDScriptFunction::MAX_CALL_DEPTH - 1) + ",1"), 1024);
if (EngineDebugger::is_active()) {
//debugging enabled!