summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-02-28 14:32:36 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-02-28 14:32:36 +0100
commit32ccf306f9a820e2ac5811de7c12e99a736fdf05 (patch)
tree41edf077bcafa3c959a417aa4700318d483ff680 /editor
parent09a6a2d8f83473b4893b4dd04ff31972e267d5d6 (diff)
downloadredot-engine-32ccf306f9a820e2ac5811de7c12e99a736fdf05.tar.gz
ConnectionsDock: Fix error when parsing CustomCallable connections
Diffstat (limited to 'editor')
-rw-r--r--editor/connections_dialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp
index 304d6d1ea9..eea92fb7ed 100644
--- a/editor/connections_dialog.cpp
+++ b/editor/connections_dialog.cpp
@@ -1015,9 +1015,10 @@ void ConnectionsDock::update_tree() {
for (List<Object::Connection>::Element *F = connections.front(); F; F = F->next()) {
- ConnectDialog::ConnectionData c = F->get();
- if (!(c.flags & CONNECT_PERSIST))
+ Connection cn = F->get();
+ if (!(cn.flags & CONNECT_PERSIST))
continue;
+ ConnectDialog::ConnectionData c = cn;
Node *target = Object::cast_to<Node>(c.target);
if (!target)