diff options
author | Joop Kiefte <ikojba@gmail.com> | 2020-09-20 09:44:21 +0200 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2020-09-20 09:44:21 +0200 |
commit | de36bfd4aecb683c128fb4294de545317fc0edab (patch) | |
tree | 1a33dd93d772fda98533565ea5c416606961fa2a /tris/core.go | |
parent | f8ec632ce36fa33aadfb28f515ac585b45118179 (diff) |
Fix nextbox colors
Diffstat (limited to 'tris/core.go')
-rw-r--r-- | tris/core.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tris/core.go b/tris/core.go index e0ae111..6963294 100644 --- a/tris/core.go +++ b/tris/core.go @@ -168,7 +168,7 @@ func (f Field) Add(p Placement) Field { } } for _, point := range p.Points() { - if point.Y < 0 || point.Y > f.H() || point.X < 0 || point.X > f.W() { + if point.Y < 0 || point.Y >= f.H() || point.X < 0 || point.X >= f.W() { continue } fn[point.Y][point.X] = p.Color() |