diff --git a/dll/steam_networking.h b/dll/steam_networking.h index 5d5ff15..46769a0 100644 --- a/dll/steam_networking.h +++ b/dll/steam_networking.h @@ -138,7 +138,7 @@ void remove_connection(CSteamID id) auto msg = std::begin(unprocessed_messages); while (msg != std::end(unprocessed_messages)) { if (msg->source_id() == id.ConvertToUint64()) { - msg = messages.erase(msg); + msg = unprocessed_messages.erase(msg); } else { ++msg; }