Skip to content

Commit

Permalink
Check SoundManager exists before accessing it. Fix #4428
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 3, 2019
1 parent f0a25f4 commit 935a981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/SceneManager.js
Expand Up @@ -516,7 +516,7 @@ var SceneManager = new Class({

// TODO - Remove. This should *not* be handled here
// Try to unlock HTML5 sounds every time any loader completes
if (this.game.sound.onBlurPausedSounds)
if (this.game.sound && this.game.sound.onBlurPausedSounds)
{
this.game.sound.unlock();
}
Expand Down

0 comments on commit 935a981

Please sign in to comment.