aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c
index f6fdb7a..de1eaa1 100644
--- a/src/player.c
+++ b/src/player.c
@@ -22,7 +22,7 @@ Player createPlayer()
void updatePlayerHeight(Player* player, Game* game)
{
float height = getWorldHeightAtLocation(
- game->world, player->position.x, player->position.z) + PLAYER_HEIGHT;
+ &game->world, player->position.x, player->position.z) + PLAYER_HEIGHT;
player->position.y = height;
}