diff --git a/trash.go b/trash.go index 81e4d1a..2b7cf79 100644 --- a/trash.go +++ b/trash.go @@ -9,7 +9,7 @@ func (game *Game) drawTrash() { func (game *Game) onTrash(pos Position) bool { var found bool for _, t := range game.trash { - if t.x == pos.x && t.y == pos.y { + if t == pos { found = true } }