mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 10:23:53 +00:00
Fix crashes in *_input functions
This commit is contained in:
@@ -189,6 +189,8 @@ String TouchScreenButton::get_action() const {
|
||||
}
|
||||
|
||||
void TouchScreenButton::_input(const Ref<InputEvent> &p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
if (!get_tree()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user