#publish fix before scene stack empty

main
xian18 3 years ago
parent 90bd0b9f94
commit cbde7e4c3f

@ -65,9 +65,10 @@ var SF_Plugins = SF_Plugins || {};
if (index == -1) { // if the scene is not in the array
this._stack.push(sceneClass);
SF_Managers.SceneManager_goto.call(this, beforeSceneList[0]);
} else if (index == beforeSceneList.length - 1) {
} else if (index === beforeSceneList.length - 1) {
SF_Managers.SceneManager_goto.call(this, sceneClass);
} else {
this._stack.push(sceneClass);
SF_Managers.SceneManager_goto.call(this, beforeSceneList[index + 1]);
}
} else {

Loading…
Cancel
Save