diff options
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 54769374a..59369f6a9 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -6389,8 +6389,8 @@ struct block_list* battle_get_master(struct block_list *src) { prev = src; switch (src->type) { case BL_PET: - if (((TBL_PET*)src)->msd) - src = (struct block_list*)((TBL_PET*)src)->msd; + if (((struct pet_data *)src)->msd != NULL) + src = (struct block_list *)((struct pet_data *)src)->msd; break; case BL_MOB: if (((struct mob_data *)src)->master_id != 0) |