Fix map2array: start at index 0

master
HimbeerserverDE 2021-02-25 10:08:00 +01:00
parent 2e6bf3643a
commit 5a909d0fb7
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
1 changed files with 2 additions and 2 deletions

View File

@ -129,9 +129,9 @@ func (t *ToolCapabs) SerializeJSON() (string, error) {
}
}
r := make([]float32, maxIndex + 1)
r := make([]float32, maxIndex)
for k, v := range m {
r[int(k)] = v
r[int(k-1)] = v
}
return r
}