Update osu.Game/Skinning/LegacySkinExtensions.cs

Co-Authored-By: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Kelvin 2020-03-12 04:18:57 -07:00 committed by GitHub
parent 317bb5d0a4
commit c8ea922577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ namespace osu.Game.Skinning
{
var iniRate = source.GetConfig<GlobalSkinConfiguration, int>(GlobalSkinConfiguration.AnimationFramerate);
if (iniRate != null && iniRate.Value > 0)
if (iniRate?.Value > 0)
return 1000f / iniRate.Value;
return 1000f / textures.Length;