fix part slices were no pinters

This commit is contained in:
2026-07-21 09:25:45 +02:00
parent 9a69d4610c
commit 8e99087a30
5 changed files with 106 additions and 26 deletions
+4 -1
View File
@@ -44,7 +44,10 @@ func (b *Base) ApplyAll() int {
for _, change := range b.changes {
b.field.AddChange(&change)
}
return len(b.changes)
len := len(b.changes)
b.changes = b.changes[:0]
return len
}
func (b *Base) ApplyNext() bool {