From 5b5191ccf046d4d11085670f9398f9875c760bc5 Mon Sep 17 00:00:00 2001 From: groud Date: Fri, 24 Aug 2018 23:05:17 +0200 Subject: [PATCH] Fix a mistake in itemlist multiselect signal --- scene/gui/item_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index d61bd97c2a4..9f5c12e87f5 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -502,7 +502,7 @@ void ItemList::_gui_input(const Ref &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) {