diff options
Diffstat (limited to 'apps/plugins/reversi/reversi-strategy-naive.c')
-rw-r--r-- | apps/plugins/reversi/reversi-strategy-naive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/reversi/reversi-strategy-naive.c b/apps/plugins/reversi/reversi-strategy-naive.c index 95d5e6010d..37a25d10da 100644 --- a/apps/plugins/reversi/reversi-strategy-naive.c +++ b/apps/plugins/reversi/reversi-strategy-naive.c | |||
@@ -32,7 +32,7 @@ static move_t naive_move_func(const reversi_board_t *game, int player) { | |||
32 | int row = 0; | 32 | int row = 0; |
33 | int col = 0; | 33 | int col = 0; |
34 | if(!num_moves) return MOVE_INVALID; | 34 | if(!num_moves) return MOVE_INVALID; |
35 | r = game->rb->rand()%num_moves; | 35 | r = rb->rand()%num_moves; |
36 | while(true) { | 36 | while(true) { |
37 | if(reversi_is_valid_move(game, row, col, player)) { | 37 | if(reversi_is_valid_move(game, row, col, player)) { |
38 | r--; | 38 | r--; |