From b69f7b8a5755a54df963c18ca2cdef530f05658b Mon Sep 17 00:00:00 2001 From: hemagx Date: Sat, 26 Dec 2015 11:17:14 +0200 Subject: Change all TBL_PC to struct map_session_data as per style guidelines Signed-off-by: Haru --- src/map/npc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index a7d4cdab0..c4ed896a9 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -212,9 +212,8 @@ int npc_enable_sub(struct block_list *bl, va_list ap) nullpo_ret(bl); nullpo_ret(nd=va_arg(ap,struct npc_data *)); - if(bl->type == BL_PC) - { - TBL_PC *sd = (TBL_PC*)bl; + if (bl->type == BL_PC) { + struct map_session_data *sd = (struct map_session_data *)bl; if (nd->option&OPTION_INVISIBLE) return 1; @@ -2296,7 +2295,7 @@ int npc_unload(struct npc_data* nd, bool single) iter = mapit_geteachpc(); for( bl = (struct block_list*)mapit->first(iter); mapit->exists(iter); bl = (struct block_list*)mapit->next(iter) ) { - struct map_session_data *sd = ((TBL_PC*)bl); + struct map_session_data *sd = (struct map_session_data *)bl; if( sd && sd->npc_timer_id != INVALID_TIMER ) { const struct TimerData *td = timer->get(sd->npc_timer_id); -- cgit v1.2.3-60-g2f50