summaryrefslogtreecommitdiff
path: root/src/map/battleground.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/battleground.c')
-rw-r--r--src/map/battleground.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battleground.c b/src/map/battleground.c
index 72ccbeb78..5d88180d5 100644
--- a/src/map/battleground.c
+++ b/src/map/battleground.c
@@ -222,8 +222,8 @@ int bg_team_get_id(struct block_list *bl) {
case BL_PC:
return ((struct map_session_data *)bl)->bg_id;
case BL_PET:
- if( ((TBL_PET*)bl)->msd )
- return ((TBL_PET*)bl)->msd->bg_id;
+ if (((struct pet_data *)bl)->msd != NULL)
+ return ((struct pet_data *)bl)->msd->bg_id;
break;
case BL_MOB:
{