diff --git a/src/g_mapinfo.cpp b/src/g_mapinfo.cpp index d73056843..9eb80ae09 100644 --- a/src/g_mapinfo.cpp +++ b/src/g_mapinfo.cpp @@ -557,7 +557,7 @@ void FMapInfoParser::SkipToNext() 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); }