fix part slices were no pinters
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user