Skip to content

Commit

Permalink
Merge pull request #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 authored Aug 18, 2017
2 parents dbdf373 + 6d50556 commit 888f8ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/howler.core.js
Original file line number Diff line number Diff line change
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 888f8ac

Please sign in to comment.