From 84954436f75553bb20d77be8158752500dc50b9d Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Fri, 28 Jul 2017 17:04:29 +0100 Subject: [PATCH] Check GameId on achievement callbacks --- Facepunch.Steamworks/Client/Achievements.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Facepunch.Steamworks/Client/Achievements.cs b/Facepunch.Steamworks/Client/Achievements.cs index 472aeb4..07e3f04 100644 --- a/Facepunch.Steamworks/Client/Achievements.cs +++ b/Facepunch.Steamworks/Client/Achievements.cs @@ -98,6 +98,7 @@ public bool Reset( string identifier ) private void UserStatsReceived( UserStatsReceived_t stats, bool isError ) { if ( isError ) return; + if ( stats.GameID != client.AppId ) return; Refresh(); @@ -107,6 +108,7 @@ private void UserStatsReceived( UserStatsReceived_t stats, bool isError ) private void UserStatsStored( UserStatsStored_t stats, bool isError ) { if ( isError ) return; + if ( stats.GameID != client.AppId ) return; Refresh();