Skip to content

Commit

Permalink
Fix bug in game loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
munificent committed Aug 3, 2014
1 parent e4bcd40 commit 0edfe15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2014-07-15-a-turn-based-game-loop.md
Expand Up @@ -192,7 +192,7 @@ void handleInput(Keyboard keyboard) {
}

void walk(Direction dir) {
game.hero.setNextAction(action);
game.hero.setNextAction(new WalkAction(dir));
}
{% endhighlight %}

Expand Down

0 comments on commit 0edfe15

Please sign in to comment.