From 72607653273ce38c18e9456a468acf0db48d262f Mon Sep 17 00:00:00 2001 From: David Raison Date: Sat, 30 Aug 2014 21:24:58 +0200 Subject: [PATCH] Fixed a missing change --- avocado.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avocado.py b/avocado.py index a067e18..21ef7f3 100644 --- a/avocado.py +++ b/avocado.py @@ -48,8 +48,8 @@ class Avocado: in click """ mousex, mousey = click - if self.pycard.left < mousex and self.pycard.right > mousex and \ - self.pycard.top < mousey and self.pycard.bottom > mousey and \ + if self.rect.left < mousex and self.rect.right > mousex and \ + self.rect.top < mousey and self.rect.bottom > mousey and \ self.color == self.select: self.destroy() return True