diff --git a/Facepunch.Steamworks/SteamFriends.cs b/Facepunch.Steamworks/SteamFriends.cs index 5acefbb..dda0fcf 100644 --- a/Facepunch.Steamworks/SteamFriends.cs +++ b/Facepunch.Steamworks/SteamFriends.cs @@ -253,8 +253,12 @@ namespace Steamworks /// public static bool SetRichPresence( string key, string value ) { - richPresence[key] = value; - return Internal.SetRichPresence( key, value ); + bool success = Internal.SetRichPresence( key, value ); + + if ( success ) + richPresence[key] = value; + + return success; } /// @@ -285,4 +289,4 @@ namespace Steamworks } } -} \ No newline at end of file +}