summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
Diffstat (limited to 'src/char')
-rw-r--r--src/char/inter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/inter.c b/src/char/inter.c
index f7287eb99..6c877de71 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -677,7 +677,7 @@ int inter_parse_frommap(int fd) {
len = 0;
// inter鯖管轄かを調べる
- if (cmd < 0x3000 || cmd >= 0x3000 + (sizeof(inter_recv_packet_length) / sizeof(inter_recv_packet_length[0])))
+ if (cmd < 0x3000 || cmd >= 0x3000 + ARRAYLENGTH(inter_recv_packet_length))
return 0;
if (inter_recv_packet_length[cmd-0x3000] == 0) //This is necessary, because otherwise we return 2 and the char server will just hang waiting for packets! [Skotlex]