Set correct player for outer_ttt in play(move)
This commit is contained in:
parent
777480000d
commit
bc3b831d42
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ e_status play_move(s_utictactoe *p_uttt, s_move *p_move) {
|
||||||
|
|
||||||
//check if we have a winner in inner_ttt then set player to outer
|
//check if we have a winner in inner_ttt then set player to outer
|
||||||
if ( p_uttt->inner_tictactoes[p_move->outer_position]->winner != NOBODY ) {
|
if ( p_uttt->inner_tictactoes[p_move->outer_position]->winner != NOBODY ) {
|
||||||
p_uttt->outer_tictactoe->content[p_move->outer_position] = p_uttt->inner_tictactoes[p_move->outer_position]->winner;
|
p_uttt->outer_tictactoe->content[p_move->outer_position] = p_move->player;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_tictactoe_winner(p_uttt->outer_tictactoe);
|
set_tictactoe_winner(p_uttt->outer_tictactoe);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue