Skip to content

Commit ce02271

Browse files
committed
Merge pull request cocos2d#2491 from pandamicro/develop
cocos2d/cocos2d-js#1108: Fix audioEngine absent issue
2 parents fa68c45 + 86b2ab1 commit ce02271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CCBoot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,7 @@ cc.game = /** @lends cc.game# */{
20522052
restart: function () {
20532053
cc.director.popToSceneStackLevel(0);
20542054
// Clean up audio
2055-
cc.audioEngine.end();
2055+
cc.audioEngine && cc.audioEngine.end();
20562056

20572057
cc.game.onStart();
20582058
},

0 commit comments

Comments
 (0)