diff options
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 7cc510547..e095672e8 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -823,7 +823,7 @@ uint8 unit_getdir(struct block_list *bl) { nullpo_ret(bl); if( bl->type == BL_NPC ) - return ((TBL_NPC*)bl)->dir; + return ((struct npc_data *)bl)->dir; ud = unit->bl2ud(bl); if (!ud) return 0; return ud->dir; @@ -1875,7 +1875,7 @@ int unit_attack(struct block_list *src,int target_id,int continuous) { if( src->type == BL_PC ) { struct map_session_data *sd = (struct map_session_data *)src; if( target->type == BL_NPC ) { // monster npcs [Valaris] - npc->click(sd,(TBL_NPC*)target); // submitted by leinsirk10 [Celest] + npc->click(sd, (struct npc_data *)target); // submitted by leinsirk10 [Celest] return 0; } if( pc_is90overweight(sd) || pc_isridingwug(sd) ) { // overweight or mounted on warg - stop attacking |