fixed reparenting error

This commit is contained in:
2025-03-26 02:32:59 +01:00
parent 9ce43ef5ce
commit 295601c7f6
2 changed files with 5 additions and 3 deletions

View File

@@ -43,7 +43,9 @@ void DiscordConnected::_enter_tree()
}
else
{
connector = get_node<DiscordConnector>(root_connector);
if (get_node_or_null(root_connector)){
connector = get_node<DiscordConnector>(root_connector);
}
}
}
}
}