From 5ffec3d741ee12ffdf55467dee5245cd50b9f702 Mon Sep 17 00:00:00 2001 From: Paradox924X Date: Tue, 2 Nov 2010 04:24:46 +0000 Subject: 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 --- src/map/npc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/npc.c') 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; -- cgit v1.2.3-60-g2f50