fix short patterns
This commit is contained in:
parent
49de30d741
commit
0f4517908d
1 changed files with 1 additions and 1 deletions
2
xm.js
2
xm.js
|
|
@ -80,7 +80,7 @@ var cur_songpos = -1, cur_pat = -1, cur_row = 64, cur_ticksamp = 0;
|
||||||
var cur_tick = 6;
|
var cur_tick = 6;
|
||||||
var patdisplay = [];
|
var patdisplay = [];
|
||||||
function next_row() {
|
function next_row() {
|
||||||
if (cur_row >= 64) {
|
if (cur_pat == -1 || cur_row >= patterns[cur_pat].length) {
|
||||||
cur_row = 0;
|
cur_row = 0;
|
||||||
cur_songpos++;
|
cur_songpos++;
|
||||||
if (cur_songpos >= songpats.length)
|
if (cur_songpos >= songpats.length)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue