DECORATE parser: fixed a problem where parsing would fail when there was no space between the "States" label and the following curly brace

This commit is contained in:
biwa 2024-01-14 15:14:41 +01:00
parent ce961501b9
commit 66a0618e83

View file

@ -552,7 +552,7 @@ namespace CodeImp.DoomBuilder.ZDoom
if(reporterror) ReportError("Expected \"" + expectedtoken + "\", but got \"" + token + "\"");
// Rewind so this structure can be read again
DataStream.Seek(-token.Length - 1, SeekOrigin.Current);
DataStream.Seek(-token.Length, SeekOrigin.Current);
return false;
}