Fix call to copy.

This commit is contained in:
Christoffer Lerno
2024-12-25 00:11:29 +01:00
parent dbf1d91961
commit 7424317d03
2 changed files with 3 additions and 3 deletions

View File

@@ -124,12 +124,12 @@ fn void update_game()
if (rl::isKeyPressed(rl::KEY_RIGHT) && allow_move)
{
snake_direction = (SnakeDirection)((snake_direction.ordinal + 1) % 4);
snake_direction = SnakeDirection.from_ordinal((snake_direction.ordinal + 1) % 4);
allow_move = false;
}
if (rl::isKeyPressed(rl::KEY_LEFT) && allow_move)
{
snake_direction = (SnakeDirection)((snake_direction.ordinal + 3) % 4);
snake_direction = SnakeDirection.from_ordinal((snake_direction.ordinal + 3) % 4);
allow_move = false;
}

View File

@@ -135,7 +135,7 @@ static char *find_windows_kit_root(void)
free(root);
free(best_file);
return scratch_buffer_to_copy();
return scratch_buffer_copy();
SEARCH_FAILED:
free(root);