From 32ccf306f9a820e2ac5811de7c12e99a736fdf05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 28 Feb 2020 14:32:36 +0100 Subject: ConnectionsDock: Fix error when parsing CustomCallable connections --- editor/connections_dialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'editor') 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::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(c.target); if (!target) -- cgit v1.2.3