From bd8fdad1d4d2a9ed9c5d8de34c368dc97d4d55a6 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Fri, 6 Jan 2017 16:24:16 -0500 Subject: [PATCH] add check for audioengine --- src/sprites/rendered-target.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index 510e166f7..b5b89365c 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -67,7 +67,7 @@ RenderedTarget.prototype.initDrawable = function () { * Audio player */ this.audioPlayer = null; - if (this.runtime) { + if (this.runtime && this.runtime.audioEngine) { if (this.isOriginal) { this.sprite.audioPlayer = this.runtime.audioEngine.createPlayer(); this.sprite.audioPlayer.loadSounds(this.sprite.sounds);