Remove scene key in SceneManager

This commit is contained in:
Arkadiusz Buras 2018-03-17 13:42:42 +01:00
parent 2ea8489716
commit e981932db1
No known key found for this signature in database
GPG key ID: 5FDE49DE9276B73E

View file

@ -161,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);
@ -356,7 +356,7 @@ var SceneManager = new Class({
if (index > -1)
{
this.keys[sceneKey] = undefined;
delete this.keys[sceneKey];
this.scenes.splice(index, 1);
if (this._start.indexOf(sceneKey) > -1)