Use postfix increment operator

This commit is contained in:
Johan Hillerström 2015-11-12 01:04:59 +01:00
commit 7aa67803ed
2 changed files with 4 additions and 4 deletions

View file

@ -120,7 +120,7 @@ function eff_t0_c(ch, data) { // set volume
}
function eff_t0_d(ch, data) { // pattern jump
player.cur_songpos += 1;
player.cur_songpos++;
if (player.cur_songpos >= player.xm.songpats.length)
player.cur_songpos = player.xm.song_looppos;
player.cur_pat = player.xm.songpats[player.cur_songpos];