mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 16:43:30 +00:00
Calling unlocked method only if locked property is set to true
This commit is contained in:
parent
31cd229bf2
commit
9ed999fada
1 changed files with 3 additions and 1 deletions
|
@ -108,7 +108,9 @@ var BaseSoundManager = new Class({
|
|||
* @default false
|
||||
*/
|
||||
this.locked = false;
|
||||
this.unlock();
|
||||
if (this.locked) {
|
||||
this.unlock();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Adds a new sound into the sound manager.
|
||||
|
|
Loading…
Reference in a new issue