Skip to content

Commit 9ed999f

Browse files
Calling unlocked method only if locked property is set to true
1 parent 31cd229 commit 9ed999f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/sound/BaseSoundManager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ var BaseSoundManager = new Class({
108108
* @default false
109109
*/
110110
this.locked = false;
111-
this.unlock();
111+
if (this.locked) {
112+
this.unlock();
113+
}
112114
},
113115
/**
114116
* Adds a new sound into the sound manager.

0 commit comments

Comments
 (0)