summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 5be283329..4a73ffbc6 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -1020,7 +1020,7 @@ int chrif_updatefamelist_ack(int fd)
default: return 0;
}
index = RFIFOB(fd, 3);
- if (index < 0 || index >= MAX_FAME_LIST)
+ if (index >= MAX_FAME_LIST)
return 0;
list[index].fame = RFIFOL(fd,4);
return 1;