mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +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>
|
/// </summary>
|
||||||
public static float PriceCategoryToFloat( string price )
|
public static float PriceCategoryToFloat( string price )
|
||||||
{
|
{
|
||||||
|
if ( string.IsNullOrEmpty( price ) )
|
||||||
|
return 0.0f;
|
||||||
|
|
||||||
price = price.Replace( "1;VLV", "" );
|
price = price.Replace( "1;VLV", "" );
|
||||||
|
|
||||||
int iPrice = 0;
|
int iPrice = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user