Clear the variable before checking anew if it is to be set.

This commit is contained in:
Holger Vogt 2024-05-06 11:19:39 +02:00
parent 69922c7d8f
commit 3f2673a2be
1 changed files with 1 additions and 1 deletions

View File

@ -8476,8 +8476,8 @@ static void inp_check_syntax(struct card *deck)
controlled_exit(EXIT_BAD);
}
/* When '.probe alli' is set, disable auto bridging and set a flag */
cp_remvar("probe_alli_given");
for (card = deck; card; card = card->nextcard) {
char* cut_line = card->line;
if (ciprefix(".probe", cut_line) && search_plain_identifier(cut_line, "alli")) {