Fix parsing floats (#7)

This commit is contained in:
Elle
2017-12-14 19:02:23 +01:00
committed by hondacrx
parent bc7dee3c8d
commit 5fc9082a02
5 changed files with 25 additions and 20 deletions
+2 -1
View File
@@ -26,6 +26,7 @@ using Game.Maps;
using Game.Network.Packets;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace Game.Chat
@@ -892,7 +893,7 @@ namespace Game.Chat
}
else
{
if (!float.TryParse(valueStr, out float value))
if (!float.TryParse(valueStr, NumberStyles.Float, CultureInfo.InvariantCulture, out float value))
return false;
target.SetFloatValue(field, value);