summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2015-12-26 11:17:14 +0200
committerHaru <haru@dotalux.com>2016-01-06 15:09:55 +0100
commit829ebdd1527a7a4a585056463f8871d926698e2d (patch)
treedb7a21cf1f33a05896793f9500580b969ca914ba /src/map/mob.c
parentb040c619b505fd7423576f88bb0fe7de35848d3d (diff)
downloadhercules-829ebdd1527a7a4a585056463f8871d926698e2d.tar.gz
hercules-829ebdd1527a7a4a585056463f8871d926698e2d.tar.bz2
hercules-829ebdd1527a7a4a585056463f8871d926698e2d.tar.xz
hercules-829ebdd1527a7a4a585056463f8871d926698e2d.zip
Change all TBL_PET to struct pet_data as per style guidelines
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 311e1049d..f74f4e85f 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1972,7 +1972,7 @@ void mob_log_damage(struct mob_data *md, struct block_list *src, int damage)
}
case BL_PET:
{
- struct pet_data *pd = (TBL_PET*)src;
+ struct pet_data *pd = (struct pet_data *)src;
flag = MDLF_PET;
if( pd->msd )
{
@@ -2582,7 +2582,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) {
md->status.hp = 0; //So that npc_event invoked functions KNOW that mob is dead
if( src ) {
switch( src->type ) {
- case BL_PET: sd = ((TBL_PET*)src)->msd; break;
+ case BL_PET: sd = ((struct pet_data *)src)->msd; break;
case BL_HOM: sd = ((struct homun_data *)src)->master; break;
case BL_MER: sd = ((struct mercenary_data *)src)->master; break;
case BL_ELEM: sd = ((TBL_ELEM*)src)->master; break;