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
@@ -28,6 +28,7 @@ using Game.Network.Packets;
using Game.Spells;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace Game.Chat
@@ -1274,7 +1275,7 @@ namespace Game.Chat
return false;
//0 to 1, sending -1 is instand good weather
if (!float.TryParse(args.NextString(), out float grade))
if (!float.TryParse(args.NextString(), NumberStyles.Float, CultureInfo.InvariantCulture, out float grade))
return false;
Player player = handler.GetSession().GetPlayer();