Fix crash when multiple mouse buttons is pressed.

This commit is contained in:
Guilherme Felipe 2018-12-01 11:25:43 -02:00
parent 5b8dde4b4a
commit ea6a5bb8fb
1 changed files with 1 additions and 1 deletions

View File

@ -1780,7 +1780,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
}
}
if (gui.mouse_focus->can_process()) {
if (gui.mouse_focus && gui.mouse_focus->can_process()) {
_gui_call_input(gui.mouse_focus, mb);
}