Fix distinguishing BUTTON by submenu
When the same BUTTON appears in different submenus, with different parameters, pressing it always picked the one that appeared first in the notecard. Fix that by making the search start at the current menu. Per bug report by AceyXx.
This commit is contained in:
parent
e4064605a1
commit
a65d7cdc82
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@ default
|
|||
animation_menu(0);
|
||||
return;
|
||||
}
|
||||
index = llListFindList(MENU_LIST, ["B:" + msg]);
|
||||
index = llListFindList(llList2List(MENU_LIST, current_menu, 99999), ["B:" + msg]);
|
||||
if (index != -1) index += current_menu;
|
||||
if (index != -1)
|
||||
{
|
||||
list button_data = llParseStringKeepNulls(llList2String(DATA_LIST, index), [SEP], []);
|
||||
|
|
Loading…
Reference in a new issue