- fixed infinite loop reporting '... before first state' errors

https://forum.zdoom.org/viewtopic.php?t=67729
This commit is contained in:
alexey.lysiuk 2020-03-05 11:01:33 +02:00 committed by drfrag
parent 673e52f02f
commit 5946744039

View file

@ -3411,7 +3411,6 @@ void ZCCCompiler::CompileStates()
if (!statedef.SetWait())
{
Error(st, "%s before first state", st->NodeType == AST_StateFail ? "Fail" : "Wait");
continue;
}
break;
@ -3419,7 +3418,6 @@ void ZCCCompiler::CompileStates()
if (!statedef.SetLoop())
{
Error(st, "LOOP before first state");
continue;
}
break;