summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-22 13:49:09 +0000
committerxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-22 13:49:09 +0000
commit14c53cd601a6aba5811909ded3dae4992d707271 (patch)
tree63ed44e4ba7eab76e6fefb3a6b99b0812310361e /src/char
parent44d7606656a650dc43018b5c63bb56ad1f70e77c (diff)
downloadhercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.gz
hercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.bz2
hercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.xz
hercules-14c53cd601a6aba5811909ded3dae4992d707271.zip
Minor cleanups, mostly reducing scopes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15504 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-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) )
{