Fix crashes in *_input functions

This commit is contained in:
Rafał Mikrut
2021-04-05 08:52:21 +02:00
parent a864a703ee
commit 504bc5cc67
43 changed files with 103 additions and 0 deletions
+2
View File
@@ -2402,6 +2402,8 @@ void Tree::_go_down() {
}
void Tree::_gui_input(Ref<InputEvent> p_event) {
ERR_FAIL_COND(p_event.is_null());
Ref<InputEventKey> k = p_event;
bool is_command = k.is_valid() && k->get_command();