Skip to content

Commit

Permalink
Fixed GoToScene action not going to next scene.
Browse files Browse the repository at this point in the history
  • Loading branch information
fr33mind committed Feb 12, 2015
1 parent 9577842 commit b4e5b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ GoToScene.prototype.goto = function(target)
if (this.targetType == this.TargetType.Position) {
target = target.toLowerCase();
if(target == "next")
gameModel.setNextScene(gameModel.getNextScene());
gameModel.setNextScene(gameModel.indexOf(gameModel.getScene())+1);
else if(target == "previous")
gameModel.setNextScene(gameModel.indexOf(gameModel.getScene())-1);
else if (target == "first")
Expand Down

0 comments on commit b4e5b28

Please sign in to comment.