From 132b1a579bab7191dadb5d8a11366770a1f2d496 Mon Sep 17 00:00:00 2001 From: BOTLANNER Date: Mon, 18 Oct 2021 11:52:55 +0200 Subject: [PATCH] Fix for GetFloat on struct Steamworks.Data.Stat always returning 0 (#598) Co-authored-by: B0TLANNER --- Facepunch.Steamworks/Structs/Stat.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Facepunch.Steamworks/Structs/Stat.cs b/Facepunch.Steamworks/Structs/Stat.cs index 559fb69..2aecda1 100644 --- a/Facepunch.Steamworks/Structs/Stat.cs +++ b/Facepunch.Steamworks/Structs/Stat.cs @@ -92,7 +92,7 @@ public float GetFloat() SteamUserStats.Internal.GetStat( Name, ref val ); } - return 0; + return val; } public int GetInt() @@ -147,4 +147,4 @@ public bool Store() return SteamUserStats.Internal.StoreStats(); } } -} \ No newline at end of file +}