command.c
changeset 2820 1a78297586a3
parent 2819 710436dd4288
child 3182 0f1161388ea1
--- a/command.c	Thu Jan 05 21:35:54 2006 +0000
+++ b/command.c	Thu Jan 05 21:50:09 2006 +0000
@@ -404,7 +404,7 @@
 	int y = TileY(tile) * 16;
 
 	/* Do not even think about executing out-of-bounds tile-commands */
-	if (tile > MapSize()) {
+	if (tile >= MapSize()) {
 		_cmd_text = NULL;
 		return false;
 	}