Skip to content

Commit

Permalink
Merge pull request goldfire#797 from Stenerson/master
Browse files Browse the repository at this point in the history
Fix error when seeking with unloaded state
  • Loading branch information
goldfire committed Aug 18, 2017
2 parents 245e7aa + 698a451 commit 95e72b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/howler.core.js
Expand Up @@ -1368,7 +1368,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 95e72b0

Please sign in to comment.