diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-08-24 23:28:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-24 23:28:05 +0200 |
commit | f72f74486d3f07b2be0c6480c6c0d34edd47794f (patch) | |
tree | 7849cb3c7dd151348f64dbd3b13649fa4a8361aa | |
parent | 6ce4078c5fdc5d9f855ea49b3382f2763a73e19b (diff) | |
parent | 5b5191ccf046d4d11085670f9398f9875c760bc5 (diff) |
Merge pull request #21385 from groud/fix_itemlist_signal
Fix a mistake in itemlist multi_select signal
-rw-r--r-- | scene/gui/item_list.cpp | 2 |
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) { |