From 142e76bd9270f91eaf10f2010f12f468e9f5ba7a Mon Sep 17 00:00:00 2001 From: BotoX Date: Mon, 2 Sep 2019 18:32:59 +0200 Subject: [PATCH] fix IsMapValid behavior change by a2246af121fbed743c317ba516d51b53c1ccf960 --- core/HalfLife2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/HalfLife2.cpp b/core/HalfLife2.cpp index 2b62c63b..a2c5ec29 100644 --- a/core/HalfLife2.cpp +++ b/core/HalfLife2.cpp @@ -1385,7 +1385,7 @@ bool CHalfLife2::IsMapValid(const char *map) if (!map || !map[0]) return false; - return FindMap(map) != SMFindMapResult::NotFound; + return FindMap(map) == SMFindMapResult::Found; } #if SOURCE_ENGINE < SE_ORANGEBOX