mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Removed accidental overwrite of the object key #3185
This commit is contained in:
parent
432a03ed7e
commit
1e6bfe660f
1 changed files with 1 additions and 3 deletions
|
@ -152,8 +152,6 @@ var SceneManager = new Class({
|
|||
}
|
||||
else if (typeof sceneConfig === 'object')
|
||||
{
|
||||
sceneConfig.key = key;
|
||||
|
||||
newScene = this.createSceneFromObject(key, sceneConfig);
|
||||
}
|
||||
else if (typeof sceneConfig === 'function')
|
||||
|
@ -163,7 +161,7 @@ var SceneManager = new Class({
|
|||
|
||||
// Replace key in case the scene changed it
|
||||
key = newScene.sys.settings.key;
|
||||
|
||||
|
||||
this.keys[key] = newScene;
|
||||
|
||||
this.scenes.push(newScene);
|
||||
|
|
Loading…
Add table
Reference in a new issue