summaryrefslogtreecommitdiff
path: root/apps/plugins/reversi/reversi-strategy-simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/reversi/reversi-strategy-simple.c')
-rw-r--r--apps/plugins/reversi/reversi-strategy-simple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/reversi/reversi-strategy-simple.c b/apps/plugins/reversi/reversi-strategy-simple.c
index 9064922cba..0aca64c1ab 100644
--- a/apps/plugins/reversi/reversi-strategy-simple.c
+++ b/apps/plugins/reversi/reversi-strategy-simple.c
@@ -33,7 +33,7 @@ static void reversi_copy_board(reversi_board_t *dst,
33 dst->rb->memcpy(dst->history,src->history, 33 dst->rb->memcpy(dst->history,src->history,
34 (BOARD_SIZE*BOARD_SIZE - INIT_STONES)*sizeof(move_t)); 34 (BOARD_SIZE*BOARD_SIZE - INIT_STONES)*sizeof(move_t));
35 for(i=0;i<BOARD_SIZE;i++) { 35 for(i=0;i<BOARD_SIZE;i++) {
36 dst->rb->memcpy(dst->board[i],src->board[i],BOARD_SIZE); 36 dst->rb->memcpy(dst->board[i],src->board[i],BOARD_SIZE*sizeof(int));
37 } 37 }
38} 38}
39 39
@@ -113,5 +113,6 @@ static move_t simple_move_func(const reversi_board_t *game, int player) {
113 113
114const game_strategy_t strategy_simple = { 114const game_strategy_t strategy_simple = {
115 true, 115 true,
116 NULL,
116 simple_move_func 117 simple_move_func
117}; 118};