From 1cad7db996ede0615a3e9b5490effbba8315c775 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Wed, 21 Jul 2021 00:02:15 -0300 Subject: [PATCH] Prevents adding `goto` re:undefined vWatch labels. --- source/qb64.bas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/qb64.bas b/source/qb64.bas index f65867a6b..55e7e556f 100644 --- a/source/qb64.bas +++ b/source/qb64.bas @@ -14225,7 +14225,6 @@ SUB vWatchAddLabel (this AS LONG, lastLine AS _BYTE) WHILE this > LEN(vWatchUsedLabels) vWatchUsedLabels = vWatchUsedLabels + SPACE$(1000) WEND - ASC(vWatchUsedLabels, this) = 1 IF firstLineNumberLabelvWatch = 0 THEN firstLineNumberLabelvWatch = this @@ -14237,6 +14236,7 @@ SUB vWatchAddLabel (this AS LONG, lastLine AS _BYTE) END IF IF prevLabel <> this THEN + ASC(vWatchUsedLabels, this) = 1 PRINT #12, "VWATCH_LABEL_" + str2$(this) + ":;" prevLabel = this lastLineNumberLabelvWatch = this