summaryrefslogtreecommitdiff
path: root/src/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console.c')
-rw-r--r--src/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console.c b/src/console.c
index da33d98..c9714a1 100644
--- a/src/console.c
+++ b/src/console.c
@@ -56,7 +56,7 @@ int console_parse_partref(char *txt, int *which, char *err)
if (strchr(txt,',') && console_parse_coords(txt, &nx, &ny, err))
{
i = pmap[ny][nx];
- if (!i || (i>>8)>=NPART)
+ if (!i)
i = -1;
else
i = i>>8;