From 3706ea319f23f2913cd2d45cd260f2f576fc51a7 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sat, 5 Dec 2020 16:01:27 -0500 Subject: [PATCH] Remove connect *_compat methods --- visual_script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visual_script.cpp b/visual_script.cpp index b10d452..f9ef184 100644 --- a/visual_script.cpp +++ b/visual_script.cpp @@ -2367,7 +2367,7 @@ void VisualScriptFunctionState::connect_to_signal(Object *p_obj, const String &p binds.push_back(p_binds[i]); } binds.push_back(Ref(this)); //add myself on the back to avoid dying from unreferencing - p_obj->connect_compat(p_signal, this, "_signal_callback", binds, CONNECT_ONESHOT); + p_obj->connect(p_signal, Callable(this, "_signal_callback"), binds, CONNECT_ONESHOT); } bool VisualScriptFunctionState::is_valid() const {