Bad winner when check second diagonale

This commit is contained in:
Yorick Barbanneau 2021-10-08 17:02:46 +02:00
parent dd55f8fa05
commit 777480000d

View file

@ -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;
}