From e5041ad0f5ec672fb9e071115a9a1ca12c0d9035 Mon Sep 17 00:00:00 2001 From: Superwaitsum Date: Fri, 5 Oct 2018 11:43:53 -0500 Subject: Add some limits on the Editor Settings --- core/script_debugger_remote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/script_debugger_remote.cpp') diff --git a/core/script_debugger_remote.cpp b/core/script_debugger_remote.cpp index 388e3b77a3..08d606b53f 100644 --- a/core/script_debugger_remote.cpp +++ b/core/script_debugger_remote.cpp @@ -1089,7 +1089,7 @@ ScriptDebuggerRemote::ScriptDebuggerRemote() : eh.userdata = this; add_error_handler(&eh); - profile_info.resize(CLAMP(int(ProjectSettings::get_singleton()->get("debug/settings/profiler/max_functions")), 128, 65535)); + profile_info.resize(GLOBAL_GET("debug/settings/profiler/max_functions")); profile_info_ptrs.resize(profile_info.size()); } -- cgit v1.2.3