1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 10:43:04 +08:00

Add missing ToArray call

Not sure where this went, was there in my original commit.
This commit is contained in:
Dean Herbert 2022-04-01 16:19:00 +09:00
parent 69d4f86122
commit 01681ee874

View File

@ -145,10 +145,10 @@ namespace osu.Game.Skinning
if (!s.Protected)
return;
var existingSkinNames = realm.Run(r => r.All<SkinInfo>()
.Where(skin => !skin.DeletePending)
.AsEnumerable()
.Select(skin => skin.Name));
string[] existingSkinNames = realm.Run(r => r.All<SkinInfo>()
.Where(skin => !skin.DeletePending)
.AsEnumerable()
.Select(skin => skin.Name)).ToArray();
// if the user is attempting to save one of the default skin implementations, create a copy first.
var skinInfo = new SkinInfo