From e2990c5e057c143a87268f39863dc3e1614ee551 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 9e2bad5b..ddb95abb 100644 --- a/core/HalfLife2.cpp +++ b/core/HalfLife2.cpp @@ -1313,7 +1313,7 @@ bool CHalfLife2::IsMapValid(const char *map) if (!map || !map[0]) return false; - return FindMap(map) != SMFindMapResult::NotFound; + return FindMap(map) == SMFindMapResult::Found; } // TODO: Add ep1 support for this. (No IServerTools available there)