Fix parsing floats (#7)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user