Fix scene unloading with Cocos2d-JS

This commit is contained in:
Florian Rival
2016-05-05 16:18:57 +02:00
parent 459b395ee9
commit 6bb426ecf6

View File

@@ -51,7 +51,7 @@ gdjs.CocosDirectorManager.prototype.onSceneUnloaded = function(cocosScene)
// the next scene that will be launched.
this._replaceByNextScene = true;
} else {
this._cocosDirector.popScene(cocosScene);
this._cocosDirector.popScene();
this._scenes.pop();
}
}