diff --git a/dll/steam_matchmaking.h b/dll/steam_matchmaking.h index 01abe055..29155d9c 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); })) {