mirror of
https://github.com/godotengine/godot.git
synced 2025-04-01 00:41:35 +08:00
Merge pull request #33557 from nekomatata/empty-tree-crash
Fixed crash when pressing down key on empty Tree
This commit is contained in:
commit
88a8f9ab36
@ -2224,8 +2224,9 @@ void Tree::_go_down() {
|
||||
TreeItem *next = NULL;
|
||||
if (!selected_item) {
|
||||
|
||||
next = hide_root ? root->get_next_visible() : root;
|
||||
selected_item = 0;
|
||||
if (root) {
|
||||
next = hide_root ? root->get_next_visible() : root;
|
||||
}
|
||||
} else {
|
||||
|
||||
next = selected_item->get_next_visible();
|
||||
|
Loading…
x
Reference in New Issue
Block a user