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:54 +0100
commit3364658237805c34ebc074d52d34f540c8a8ee56 (patch)
tree1bae2bca09c3f8b08d5a41be55efbe3cb2fa3d1a /src/map/mob.c
parent1249dc22081a0be982489aae8f18e1658e0cba95 (diff)
downloadhercules-3364658237805c34ebc074d52d34f540c8a8ee56.tar.gz
hercules-3364658237805c34ebc074d52d34f540c8a8ee56.tar.bz2
hercules-3364658237805c34ebc074d52d34f540c8a8ee56.tar.xz
hercules-3364658237805c34ebc074d52d34f540c8a8ee56.zip
Change all TBL_HOM to struct homun_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 8b59cc413..2c7f3a585 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1953,7 +1953,7 @@ void mob_log_damage(struct mob_data *md, struct block_list *src, int damage)
}
case BL_HOM:
{
- struct homun_data *hd = (TBL_HOM*)src;
+ struct homun_data *hd = (struct homun_data *)src;
flag = MDLF_HOMUN;
if( hd->master )
char_id = hd->master->status.char_id;
@@ -2583,7 +2583,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) {
if( src ) {
switch( src->type ) {
case BL_PET: sd = ((TBL_PET*)src)->msd; break;
- case BL_HOM: sd = ((TBL_HOM*)src)->master; break;
+ case BL_HOM: sd = ((struct homun_data *)src)->master; break;
case BL_MER: sd = ((TBL_MER*)src)->master; break;
case BL_ELEM: sd = ((TBL_ELEM*)src)->master; break;
}