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