summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorGuilherme Felipe <guilhermefelipecgs@gmail.com>2018-12-01 11:25:43 -0200
committerGuilherme Felipe <guilhermefelipecgs@gmail.com>2018-12-01 11:25:43 -0200
commitea6a5bb8fb886624f61bffece3df92e9491d12ce (patch)
tree3b8f83fa2cfc7f27ded4aea85b2806392a0258f4 /scene
parent5b8dde4b4a5a930e08da51e07ec87f43e5bd7b36 (diff)
Fix crash when multiple mouse buttons is pressed.
Diffstat (limited to 'scene')
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 9ceac0d7b0..fd584e82ad 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -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);
}