diff --git a/src/model.c b/src/model.c index 3eee693..eb1c02f 100644 --- a/src/model.c +++ b/src/model.c @@ -202,7 +202,7 @@ void set_tictactoe_winner(s_tictactoe *p_ttt){ if ( p_ttt->content[2] != NOBODY && p_ttt->content[2] == p_ttt->content[4] && p_ttt->content[2] == p_ttt->content[6] ) { - p_ttt->winner = p_ttt->content[0]; + p_ttt->winner = p_ttt->content[2]; return; }