Skip to content

Commit 1d43fb9

Browse files
author
David Case
committed
add nil check
1 parent 0decbf5 commit 1d43fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (m MAP) set(cells []bpu.Cell) {
5151
continue
5252
}
5353

54-
if idx%2 == 1 {
54+
if idx%2 == 1 && cell.S != nil {
5555
key := *cells[idx-1].S
5656
m[key] = *cell.S
5757
}

0 commit comments

Comments
 (0)