musikr: fix playlist graphing

This commit is contained in:
Alexander Capehart 2024-12-17 12:17:28 -05:00
parent b3a598c558
commit 3ad2fd2fc0
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -340,7 +340,7 @@ internal class GenreVertex(val preGenre: PreGenre) {
}
internal class PlaylistVertex(val prePlaylist: PrePlaylist) {
val songVertices = mutableListOf<SongVertex?>()
val pointerMap = mutableMapOf<SongPointer, Int>()
val songVertices = Array<SongVertex?>(prePlaylist.songPointers.size) { null}
val pointerMap = prePlaylist.songPointers.withIndex().associateBy { it.value }.mapValuesTo(mutableMapOf()) { it.value.index }
val tag: Any? = null
}