From 2f5b0a4bea05406ecdf05908173f62b30111ce5d Mon Sep 17 00:00:00 2001 From: otavepto Date: Sun, 31 Mar 2024 21:17:54 +0200 Subject: [PATCH] sanity check in gameserver_stats if the msg source steamid was similar to us! --- dll/steam_gameserverstats.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dll/steam_gameserverstats.cpp b/dll/steam_gameserverstats.cpp index 1c39a7f2..e69c5466 100644 --- a/dll/steam_gameserverstats.cpp +++ b/dll/steam_gameserverstats.cpp @@ -537,6 +537,9 @@ void Steam_GameServerStats::network_callback_updated_stats(Common_Message *msg) // only triggered when we have a message void Steam_GameServerStats::network_callback(Common_Message *msg) { + // this should never happen, but just in case + if (msg->source_id() == settings->get_local_steam_id().ConvertToUint64()) return; + switch (msg->gameserver_stats_messages().type()) { // user sent all their stats