From 5411bb394eeef9bb4c9b6b522e12035700c18a6c Mon Sep 17 00:00:00 2001 From: Thomas Maeder Date: Mon, 20 May 2024 16:26:10 +0200 Subject: [PATCH] #492 added some more input checks while we are at it --- solving/machinery/twin.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/solving/machinery/twin.c b/solving/machinery/twin.c index 98716fe7c..4f0b4b24b 100644 --- a/solving/machinery/twin.c +++ b/solving/machinery/twin.c @@ -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