friendz: fix grid deserialization
authorJean Privat <jean@pryen.org>
Tue, 15 Sep 2015 08:57:02 +0000 (04:57 -0400)
committerJean Privat <jean@pryen.org>
Tue, 15 Sep 2015 08:57:02 +0000 (04:57 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

contrib/friendz/src/grid.nit

index 3b4fad9..3a141f6 100644 (file)
@@ -267,7 +267,7 @@ class Grid
                if x>0 then y += 1
                if x > mx then mx = x
                if y > my then my = y
-               if mx<3 or my<3 or mx>=max_width or my>=max_height then
+               if mx<3 or my<3 or mx>max_width or my>max_height then
                        return false
                end
                self.resize(mx,my)