summaryrefslogtreecommitdiff
path: root/scene/gui/item_list.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-05 11:54:08 +0200
committerGitHub <noreply@github.com>2021-04-05 11:54:08 +0200
commit77dc4c3cb6b59e826699c1590bc26b071e868216 (patch)
tree5ba2509b65b1a9e48d916616e08c593688ee5a14 /scene/gui/item_list.cpp
parent789646e2010632908b0569c64190b1b37e033cb8 (diff)
parent504bc5cc6719db3bcafa5f1262b95fa2a58ec0a1 (diff)
Merge pull request #47636 from qarmin/input
Fix crashes in *_input functions
Diffstat (limited to 'scene/gui/item_list.cpp')
-rw-r--r--scene/gui/item_list.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index 482560d29d..86d070f9b1 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -530,6 +530,8 @@ Size2 ItemList::Item::get_icon_size() const {
}
void ItemList::_gui_input(const Ref<InputEvent> &p_event) {
+ ERR_FAIL_COND(p_event.is_null());
+
double prev_scroll = scroll_bar->get_value();
Ref<InputEventMouseMotion> mm = p_event;