Merge pull request #21385 from groud/fix_itemlist_signal

Fix a mistake in itemlist multi_select signal
This commit is contained in:
Rémi Verschelde 2018-08-24 23:28:05 +02:00 committed by GitHub
commit f72f74486d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {