1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 06:29:52 +08:00

Fallback on invalid AnimationFramerate for legacy skins

This commit is contained in:
Kelvin
2020-03-12 03:55:45 -07:00
Unverified
parent 9e52fbdd3e
commit 317bb5d0a4
+1 -1
View File
@@ -61,7 +61,7 @@ namespace osu.Game.Skinning
{
var iniRate = source.GetConfig<GlobalSkinConfiguration, int>(GlobalSkinConfiguration.AnimationFramerate);
if (iniRate != null)
if (iniRate != null && iniRate.Value > 0)
return 1000f / iniRate.Value;
return 1000f / textures.Length;