diff --git a/Persephone/Models/QueueItem.swift b/Persephone/Models/QueueItem.swift index 8a98214..e85d091 100644 --- a/Persephone/Models/QueueItem.swift +++ b/Persephone/Models/QueueItem.swift @@ -12,10 +12,4 @@ struct QueueItem: Hashable { var song: Song var queuePos: Int var isPlaying: Bool - - func hash(into hasher: inout Hasher) { - hasher.combine(song) - hasher.combine(queuePos) - hasher.combine(isPlaying) - } } diff --git a/Persephone/Models/Song.swift b/Persephone/Models/Song.swift index 0d283fe..a69f38f 100644 --- a/Persephone/Models/Song.swift +++ b/Persephone/Models/Song.swift @@ -47,6 +47,7 @@ extension Song: Equatable { extension Song: Hashable { func hash(into hasher: inout Hasher) { hasher.combine(mpdSong.uriString) + hasher.combine(disc) hasher.combine(trackNumber) hasher.combine(title) hasher.combine(artist)