From 4e3331ddad09a2cdb26da903657e448054760d45 Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Fri, 1 May 2020 12:23:39 -0400 Subject: [PATCH] Fix lobby search bug when games sets an unsigned value but then searches for a signed value. --- dll/steam_matchmaking.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dll/steam_matchmaking.h b/dll/steam_matchmaking.h index 9122755..6973a9e 100644 --- a/dll/steam_matchmaking.h +++ b/dll/steam_matchmaking.h @@ -1170,7 +1170,8 @@ void RunCallbacks() } } else { try { - int compare_to = std::stoi(value->second, 0, 0); + PRINT_DEBUG("%s\n", value->second.c_str()); + int compare_to = std::stoll(value->second, 0, 0); PRINT_DEBUG("Compare Values %i %i\n", compare_to, f.value_int); if (f.eComparisonType == k_ELobbyComparisonEqual) { if (compare_to == f.value_int) {