diff --git a/osu.Game/Database/RealmContextFactory.cs b/osu.Game/Database/RealmContextFactory.cs index ba6fb4dd41..20667bb3d1 100644 --- a/osu.Game/Database/RealmContextFactory.cs +++ b/osu.Game/Database/RealmContextFactory.cs @@ -212,9 +212,9 @@ namespace osu.Game.Database var oldMetadata = migration.OldRealm.DynamicApi.All(getMappedOrOriginalName(typeof(RealmBeatmapMetadata))); var newMetadata = migration.NewRealm.All(); - int itemCount = newMetadata.Count(); + int metadataCount = newMetadata.Count(); - for (int i = 0; i < itemCount; i++) + for (int i = 0; i < metadataCount; i++) { dynamic? oldItem = oldMetadata.ElementAt(i); var newItem = newMetadata.ElementAt(i);