summaryrefslogtreecommitdiffstats
path: root/core/debugger
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-02-10 13:19:14 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-02-10 13:19:14 -0600
commitb3cac9c0923f0afb520a35c0e792a6a73868fa84 (patch)
tree9311f97aea335f0e48605d0abec04096333d7326 /core/debugger
parent4e990cd7e51d17cf24f854cc33b2715eaa27200f (diff)
downloadredot-engine-b3cac9c0923f0afb520a35c0e792a6a73868fa84.tar.gz
Allow Ref `instantiate` to accept constructor args
Diffstat (limited to 'core/debugger')
-rw-r--r--core/debugger/remote_debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/debugger/remote_debugger.cpp b/core/debugger/remote_debugger.cpp
index fe9e468774..6f2036705d 100644
--- a/core/debugger/remote_debugger.cpp
+++ b/core/debugger/remote_debugger.cpp
@@ -665,7 +665,7 @@ RemoteDebugger::RemoteDebugger(Ref<RemoteDebuggerPeer> p_peer) {
// Performance Profiler
Object *perf = Engine::get_singleton()->get_singleton_object("Performance");
if (perf) {
- performance_profiler = Ref<PerformanceProfiler>(memnew(PerformanceProfiler(perf)));
+ performance_profiler.instantiate(perf);
performance_profiler->bind("performance");
profiler_enable("performance", true);
}