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

Fix off-by-one error when using opt.index value

e.g. opt.index==0 was treated the same as opt.index==1
parent c5af0423
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ function loadfont(fn_arg) {
opt.index = random(map.split(sequence).length);
if(this.opt && opt.index>0) {
var index = -1;
var index = 20;
var n = 0;
while (n < opt.index) {
index = map.indexOf(sequence, index + 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment