From 211bd0b1b0d2c2b751a0bf26508dd5887e7432ce Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 18 Jun 2018 08:51:33 +0200 Subject: [PATCH] Remove unnecessary check for the ending brace. --- src/g_mapinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }