From fcf004ec39240aed6aad421a5557391c4497bc4c Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 5 Mar 2020 11:01:33 +0200 Subject: [PATCH] - fixed infinite loop reporting '... before first state' errors https://forum.zdoom.org/viewtopic.php?t=67729 --- src/scripting/zscript/zcc_compile.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index 316e39f37..b11cf10bb 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -3407,7 +3407,6 @@ void ZCCCompiler::CompileStates() if (!statedef.SetWait()) { Error(st, "%s before first state", st->NodeType == AST_StateFail ? "Fail" : "Wait"); - continue; } break; @@ -3415,7 +3414,6 @@ void ZCCCompiler::CompileStates() if (!statedef.SetLoop()) { Error(st, "LOOP before first state"); - continue; } break;