From ea1eb121259a3df810c7e2443d555fce07b89d62 Mon Sep 17 00:00:00 2001 From: stpohle Date: Mon, 16 Jun 2003 21:27:25 +0000 Subject: [PATCH] BadValue SDL Error Message playermove ? in draw_stone --- src/field.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/field.c b/src/field.c index a009bd3..d462d86 100644 --- a/src/field.c +++ b/src/field.c @@ -1,4 +1,4 @@ -/* $Id: field.c,v 1.32 2003/06/07 19:52:45 stpohle Exp $ */ +/* $Id: field.c,v 1.33 2003/06/16 21:27:25 stpohle Exp $ */ /* field.c - procedures which are needed to control the field */ #include @@ -19,7 +19,7 @@ draw_stone (int x, int y) int i, d; - if (x < 0 || y < 0 || x > bman.fieldsize.x || y > bman.fieldsize.y) { + if (x < 0 || y < 0 || x >= bman.fieldsize.x || y >= bman.fieldsize.y) { d_fatal ("Draw Stone out of range [%d,%d]\n", x, y); return; }