fix(sointu): remember to copy song.RowsPerPattern in .copy method

This commit is contained in:
vsariola 2021-01-30 22:59:03 +02:00
parent 22c433b3e4
commit 5033e8fa8e

View File

@ -266,7 +266,7 @@ func (s *Song) Copy() Song {
for i, t := range s.Tracks {
tracks[i] = t.Copy()
}
return Song{BPM: s.BPM, Tracks: tracks, Patch: s.Patch.Copy()}
return Song{BPM: s.BPM, RowsPerPattern: s.RowsPerPattern, Tracks: tracks, Patch: s.Patch.Copy()}
}
func (s *Song) SequenceLength() int {