Skip to content
Snippets Groups Projects
Commit 4c7d5cdb authored by deuce's avatar deuce
Browse files

Failsafe needs to decrement i to get the correct index into items

parent 2c839a15
No related branches found
No related tags found
No related merge requests found
...@@ -101,6 +101,7 @@ function Lightbar_failsafe_getval() ...@@ -101,6 +101,7 @@ function Lightbar_failsafe_getval()
} }
write("Choose an option: "); write("Choose an option: ");
i=console.getnum(i); i=console.getnum(i);
i--;
if(this.items[i]==undefined) if(this.items[i]==undefined)
return(null); return(null);
if(this.items[i].retval==undefined) if(this.items[i].retval==undefined)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment