mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 22:58:01 +03:00
PriceCategoryToFloat returns 0 if string empty, null
This commit is contained in:
parent
dec523602d
commit
5c62314f96
@ -163,6 +163,9 @@ namespace Facepunch.Steamworks
|
||||
/// </summary>
|
||||
public static float PriceCategoryToFloat( string price )
|
||||
{
|
||||
if ( string.IsNullOrEmpty( price ) )
|
||||
return 0.0f;
|
||||
|
||||
price = price.Replace( "1;VLV", "" );
|
||||
|
||||
int iPrice = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user