- 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
parent 178cf40428
commit fcf004ec39

View file

@ -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;