summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-05 22:03:20 +0100
committerHaru <haru@dotalux.com>2015-12-05 22:03:20 +0100
commit079e7ed9d05b5f80f5106a164762ad1d39e64c92 (patch)
tree61ccebe4ef0cb135152f2d4ec96e4af7a14bc3fa /src/map/intif.c
parent1eecc1573a82bdcb48799179d156f37dbffba4a8 (diff)
downloadhercules-079e7ed9d05b5f80f5106a164762ad1d39e64c92.tar.gz
hercules-079e7ed9d05b5f80f5106a164762ad1d39e64c92.tar.bz2
hercules-079e7ed9d05b5f80f5106a164762ad1d39e64c92.tar.xz
hercules-079e7ed9d05b5f80f5106a164762ad1d39e64c92.zip
Removed some unnecessary assertions
- Follow-up to 81e0257 Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 6819ad26c..9fe82302f 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -1007,7 +1007,7 @@ void mapif_parse_WisToGM(int fd)
char *message;
mes_len = RFIFOW(fd,2) - 32;
- Assert_retv(mes_len > 0 && mes_len > 32000);
+ Assert_retv(mes_len > 0 && mes_len < 32000);
message = (char *) (mes_len >= 255 ? (char *) aMalloc(mes_len) : mbuf);
permission = RFIFOL(fd,28);