Fixed #2207 AS - Index -2 out of bounds for some of the switches

This commit is contained in:
Jindra Petřík
2024-03-16 09:59:45 +01:00
parent 9dcc30d8e9
commit 55a7112f10
2 changed files with 3 additions and 1 deletions

View File

@@ -936,7 +936,7 @@ public class Graph {
}
if (breakCount == 2) {
if (breakCaseIndex == 0) {
if (breakCaseIndex <= 0) {
continue loopi;
}
if (swi.caseCommands.get(breakCaseIndex - 1).isEmpty()) {