From 8d5f140e0962109f6f62e034023e8b2c975a8502 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 1 May 2019 13:22:06 +0100 Subject: [PATCH] GetImage returns null on -1 --- Facepunch.Steamworks/SteamUtils.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Facepunch.Steamworks/SteamUtils.cs b/Facepunch.Steamworks/SteamUtils.cs index ccf4229..f32dd5b 100644 --- a/Facepunch.Steamworks/SteamUtils.cs +++ b/Facepunch.Steamworks/SteamUtils.cs @@ -99,6 +99,7 @@ public static bool GetImageSize( int image, out uint width, out uint height ) /// public static Data.Image? GetImage( int image ) { + if ( image == -1 ) return null; if ( image == 0 ) return null; var i = new Data.Image();