You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix a segfault in ConnectDialog if the destination node does not exist
(cherry picked from commit ed108fc993)
This commit is contained in:
committed by
Rémi Verschelde
parent
227bb38fa4
commit
34e97c2b65
@@ -453,7 +453,13 @@ void ConnectDialog::_update_ok_enabled() {
|
||||
}
|
||||
|
||||
void ConnectDialog::_update_warning_label() {
|
||||
Ref<Script> scr = source->get_node(dst_path)->get_script();
|
||||
Node *dst = source->get_node(dst_path);
|
||||
if (dst == nullptr) {
|
||||
warning_label->set_visible(false);
|
||||
return;
|
||||
}
|
||||
|
||||
Ref<Script> scr = dst->get_script();
|
||||
if (scr.is_null()) {
|
||||
warning_label->set_visible(false);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user