diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 08:04:53 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 08:04:53 +0000 |
commit | e8d7a95f9416c67242db5e06fd1743c8f28b3b08 (patch) | |
tree | a31a379d1f2e3af7eede623407b4cc0a25b43383 /src/char | |
parent | 5f6a6a2557a90573a504b541a3234f0dc566bf6a (diff) | |
download | hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.tar.gz hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.tar.bz2 hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.tar.xz hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.zip |
Some code cleaning...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11505 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/inter.c | 2 |
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] |