From 0edfe15938b28cb3567a6e5130dc4412cab906ee Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Sun, 3 Aug 2014 09:06:17 -0700 Subject: [PATCH] Fix bug in game loop. --- _posts/2014-07-15-a-turn-based-game-loop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2014-07-15-a-turn-based-game-loop.md b/_posts/2014-07-15-a-turn-based-game-loop.md index 13b6e22..0faedd6 100644 --- a/_posts/2014-07-15-a-turn-based-game-loop.md +++ b/_posts/2014-07-15-a-turn-based-game-loop.md @@ -192,7 +192,7 @@ void handleInput(Keyboard keyboard) { } void walk(Direction dir) { - game.hero.setNextAction(action); + game.hero.setNextAction(new WalkAction(dir)); } {% endhighlight %}