Skip to content
Snippets Groups Projects
Commit d38c6ae9 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use 1-based group and lib numbers for optional subs* and dirs* menu files

This was a bug in the conversion from Baja and C++ to JS.

Discovered/reported by vela025
parent cd75c5fe
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ function show_subs(grp) ...@@ -104,7 +104,7 @@ function show_subs(grp)
{ {
if(msg_area.grp_list.length < 1) if(msg_area.grp_list.length < 1)
return; return;
if(bbs.menu("subs" + msg_area.grp_list[grp].number, P_NOERROR)) if(bbs.menu("subs" + msg_area.grp_list[grp].number + 1, P_NOERROR))
return; return;
console.newline(); console.newline();
console.print(format(bbs.text(bbs.text.SubLstHdr), msg_area.grp_list[grp].description)); console.print(format(bbs.text(bbs.text.SubLstHdr), msg_area.grp_list[grp].description));
...@@ -182,7 +182,7 @@ function show_dirs(lib) ...@@ -182,7 +182,7 @@ function show_dirs(lib)
{ {
if(file_area.lib_list.length < 1) if(file_area.lib_list.length < 1)
return; return;
if(bbs.menu("dirs" + file_area.lib_list[lib].number, P_NOERROR)) if(bbs.menu("dirs" + file_area.lib_list[lib].number + 1, P_NOERROR))
return; return;
console.newline(); console.newline();
console.print(format(bbs.text(bbs.text.DirLstHdr), file_area.lib_list[lib].description)); console.print(format(bbs.text(bbs.text.DirLstHdr), file_area.lib_list[lib].description));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment