Skip to content

Commit

Permalink
Fix error when seeking with unloaded state
Browse files Browse the repository at this point in the history
  • Loading branch information
Stenerson committed Jul 22, 2017
1 parent 273394e commit 6d50556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/howler.core.js
Expand Up @@ -1355,7 +1355,9 @@
if (index >= 0) {
id = parseInt(args[0], 10);
} else {
id = self._sounds[0]._id;
if (self._sounds.length > 0) {
id = self._sounds[0]._id;
}
seek = parseFloat(args[0]);
}
} else if (args.length === 2) {
Expand Down

0 comments on commit 6d50556

Please sign in to comment.