summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorgroud <gilles.roudiere@gmail.com>2018-08-24 23:05:17 +0200
committergroud <gilles.roudiere@gmail.com>2018-08-24 23:05:17 +0200
commit5b5191ccf046d4d11085670f9398f9875c760bc5 (patch)
tree01fbb9e4a03a069bcddae99d5479ae133a896138 /scene/gui
parentd1497b720eb34da7797e5107c357f6ed17b37297 (diff)
Fix a mistake in itemlist multiselect signal
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/item_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index d61bd97c2a..9f5c12e87f 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -502,7 +502,7 @@ void ItemList::_gui_input(const Ref<InputEvent> &p_event) {
bool selected = !items[j].selected;
select(j, false);
if (selected)
- emit_signal("multi_selected", i, true);
+ emit_signal("multi_selected", j, true);
}
if (mb->get_button_index() == BUTTON_RIGHT) {