From f629b1c6632d7b23d49a6135a462bfe96b9e5b49 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Mon, 13 May 2019 19:51:20 +0100 Subject: [PATCH] Fixed NRE in OnAchievementIconFetched --- Facepunch.Steamworks/SteamUserStats.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Facepunch.Steamworks/SteamUserStats.cs b/Facepunch.Steamworks/SteamUserStats.cs index 0ea0532..e5eb135 100644 --- a/Facepunch.Steamworks/SteamUserStats.cs +++ b/Facepunch.Steamworks/SteamUserStats.cs @@ -45,8 +45,7 @@ internal static void InstallEvents() UserStatsStored_t.Install( x => OnUserStatsStored?.Invoke( x.Result ) ); UserAchievementStored_t.Install( x => OnAchievementProgress?.Invoke( new Achievement( x.AchievementName ), (int) x.CurProgress, (int)x.MaxProgress ) ); UserStatsUnloaded_t.Install( x => OnUserStatsUnloaded?.Invoke( x.SteamIDUser ) ); - UserAchievementIconFetched_t.Install( x => OnAchievementIconFetched( x.AchievementName, x.IconHandle ) ); - + UserAchievementIconFetched_t.Install( x => OnAchievementIconFetched?.Invoke( x.AchievementName, x.IconHandle ) ); }