diff options
author | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-02 04:24:46 +0000 |
---|---|---|
committer | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-02 04:24:46 +0000 |
commit | 5ffec3d741ee12ffdf55467dee5245cd50b9f702 (patch) | |
tree | cd04f375116d2f97dc8a93e66b3d71ee6b4d5159 /src/map/npc.c | |
parent | 771ec0d02a5660a10f27d8545917104f40e802fa (diff) | |
download | hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.tar.gz hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.tar.bz2 hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.tar.xz hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.zip |
Applied patch by xazax to clean up various bits of code across mapserver code. (bugreport:4512)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14438 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 8eb1c1ba7..95981ad55 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -135,12 +135,11 @@ int npc_ontouch2_event(struct map_session_data *sd, struct npc_data *nd) *------------------------------------------*/ int npc_enable_sub(struct block_list *bl, va_list ap) { - struct map_session_data *sd; struct npc_data *nd; nullpo_ret(bl); nullpo_ret(nd=va_arg(ap,struct npc_data *)); - if(bl->type == BL_PC && (sd=(struct map_session_data *)bl)) + if(bl->type == BL_PC) { TBL_PC *sd = (TBL_PC*)bl; |