diff options
author | Robby Zambito <contact@robbyzambito.me> | 2022-01-22 16:12:31 -0500 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2022-01-22 16:12:31 -0500 |
commit | a33c266de08a0fe39d4d3b9c4d720695e217d024 (patch) | |
tree | 5cfba6191ca958cec85f86de5e63d03606c868be /src/board.c | |
parent | a13ec7ae35953d852afa1ce7a1761f76ea8e4b36 (diff) |
Correctly return the player from scm_get_winner
Diffstat (limited to 'src/board.c')
-rw-r--r-- | src/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/board.c b/src/board.c index b40d1e3..54340e0 100644 --- a/src/board.c +++ b/src/board.c @@ -80,9 +80,9 @@ SCM scm_get_winner(SCM scm_board, SCM scm_current_player) { enum player_color **board = scm_board_to_c_board(scm_board); enum player_color current_player = scm_player_to_c_player(scm_current_player); - bool res = get_winner(board, current_player, NULL, NULL); + enum player_color res = get_winner(board, current_player, NULL, NULL); free_board(board); - return scm_from_bool(res); + return scm_player_from_c_player(res); } // Should be freed be the caller |