summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index cb3007ff9..338744828 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3992,9 +3992,8 @@ int mapif_sendallwos(int sfd, unsigned char *buf, unsigned int len)
int mapif_send(int fd, unsigned char *buf, unsigned int len)
{
- int i;
-
if (fd >= 0) {
+ int i;
ARR_FIND( 0, ARRAYLENGTH(server), i, fd == server[i].fd );
if( i < ARRAYLENGTH(server) )
{