mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 00:40:26 +00:00
Prevents adding goto
re:undefined vWatch labels.
This commit is contained in:
parent
fb94a16bfe
commit
1cad7db996
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue