1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 00:07:19 +08:00

Add more sane limit for maximum slider length

This commit is contained in:
smoogipoo 2020-03-11 18:07:11 +09:00
parent 42bc8bc50d
commit 758bb3711f

View File

@ -126,7 +126,7 @@ namespace osu.Game.Rulesets.Objects.Legacy
if (split.Length > 7)
{
length = Math.Max(0, Parsing.ParseDouble(split[7]));
length = Math.Max(0, Parsing.ParseDouble(split[7], Parsing.MAX_COORDINATE_VALUE));
if (length == 0)
length = null;
}