Skip to content

Commit 1ee6b1c

Browse files
committed
fix crash on banks not at capacity
1 parent a9db6f5 commit 1ee6b1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

filesystem/bank.go

+1
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,5 @@ func (b *Bank) Read(filename string) {
227227
if err != nil {
228228
log.Fatal(err)
229229
}
230+
b.Grids = b.Grids[:cap(b.Grids)]
230231
}

0 commit comments

Comments
 (0)