test(tracker): fuzz testing of ID collisions and file read/writes

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2024-09-07 15:16:53 +03:00
parent 61e7da5dab
commit 9da6c2216c
2 changed files with 43 additions and 1 deletions

View File

@ -461,7 +461,7 @@ func (m *Model) fixIDCollisions() {
}
}
if needsFix {
m.Alerts().Add("Some units had duplicate IDs, they were fixed", Error)
m.Alerts().AddNamed("IDCollision", "Some units had duplicate IDs, they were fixed", Error)
for i, instr := range m.d.Song.Patch {
for j, unit := range instr.Units {
if unit.ID == 0 {