Fix bug when reverting to turn 1 in recursive mode
This commit is contained in:
parent
b966475045
commit
90f27bb26d
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ namespace Hanabi
|
||||||
{
|
{
|
||||||
make_turn();
|
make_turn();
|
||||||
}
|
}
|
||||||
while (state->draw_pile_size() < draw_pile_break or
|
while (next_action > 0 and (state->draw_pile_size() < draw_pile_break or
|
||||||
(state->draw_pile_size() == draw_pile_break and state->last_action_type() == ActionType::clue))
|
(state->draw_pile_size() == draw_pile_break and state->last_action_type() == ActionType::clue)))
|
||||||
{
|
{
|
||||||
revert_turn();
|
revert_turn();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue