Bad winner when check second diagonale
This commit is contained in:
parent
dd55f8fa05
commit
777480000d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue