Skip to content

Commit

Permalink
#492 added some more input checks while we are at it
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Maeder committed May 20, 2024
1 parent e098901 commit 5411bb3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions solving/machinery/twin.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,15 @@ void verify_position(slice_index si)
}
}

if (CondFlag[republican])
{
if (being_solved.currPieceId+(RepublicanType==ConditionType1 ? 1 : 2)>MaxPieceId)
{
output_plaintext_verifie_message(PieceAdditionFailed);
return;
}
}

#ifdef _SE_DECORATE_SOLUTION_
se_init();
#endif
Expand Down

0 comments on commit 5411bb3

Please sign in to comment.