summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index 40319d5..55cb303 100644
--- a/src/game.c
+++ b/src/game.c
@@ -31,7 +31,8 @@ game_update(Game *this)
}
if (this->queue_next_scene) {
this->queue_next_scene = false;
- this->player_dir = game_get_entity(this, ET_exit)->exit.dir;
+ this->player_dir = game_get_entity(this,
+ entity_type("exit"))->exit.dir;
map_next();
game_restart_scene(this);
return;