Remove unnecessary check for the ending brace.

This commit is contained in:
Christoph Oelckers 2018-06-18 08:51:33 +02:00
parent 243787d19a
commit 211bd0b1b0

View file

@ -557,7 +557,7 @@ void FMapInfoParser::SkipToNext()
void FMapInfoParser::CheckEndOfFile(const char *block) void FMapInfoParser::CheckEndOfFile(const char *block)
{ {
if (format_type == FMT_New && (sc.End || !sc.Compare("}"))) if (format_type == FMT_New && sc.End)
{ {
sc.ScriptError("Unexpected end of file in %s definition", block); sc.ScriptError("Unexpected end of file in %s definition", block);
} }