Fix value not being loaded from beatmap in case of most dense grid setting

This commit is contained in:
Dean Herbert 2021-09-21 20:09:34 +09:00
parent d15bd5a15e
commit 59d6a718d6

View File

@ -31,7 +31,7 @@ namespace osu.Game.Rulesets.Osu.Edit
private void load() private void load()
{ {
var gridSizeIndex = Array.IndexOf(grid_sizes, editorBeatmap.BeatmapInfo.GridSize); var gridSizeIndex = Array.IndexOf(grid_sizes, editorBeatmap.BeatmapInfo.GridSize);
if (gridSizeIndex > 0) if (gridSizeIndex >= 0)
currentGridSizeIndex = gridSizeIndex; currentGridSizeIndex = gridSizeIndex;
updateSpacing(); updateSpacing();
} }