From 8c534e770b96c058dbdb365f2a7075edb5b84f08 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 f0e1013f..3b9b980c 100644 --- a/core/HalfLife2.cpp +++ b/core/HalfLife2.cpp @@ -1432,7 +1432,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