From dd1c6f01a0a483dbf2bb6826a43c9b439f12e050 Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Tue, 26 May 2020 10:18:45 -0400 Subject: [PATCH] Fix CI build. --- dll/steam_matchmaking.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dll/steam_matchmaking.h b/dll/steam_matchmaking.h index 01abe05..29155d9 100644 --- a/dll/steam_matchmaking.h +++ b/dll/steam_matchmaking.h @@ -89,12 +89,11 @@ public ISteamMatchmaking std::vector data_requested; std::map> self_lobby_member_data; -auto caseinsensitive_find(const ::google::protobuf::Map< ::std::string, ::std::string >& map, std::string key) +google::protobuf::Map::const_iterator caseinsensitive_find(const ::google::protobuf::Map< ::std::string, ::std::string >& map, std::string key) { auto x = map.begin(); while (x != map.end()) { - if (std::equal(x->first.begin(), x->first.end(), - key.begin(), key.end(), + if (key.size() == x->first.size() && std::equal(x->first.begin(), x->first.end(), key.begin(), [](char a, char b) { return tolower(a) == tolower(b); })) {