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 799a502d4..7ac18daf8 100644
--- a/src/map/battleground.c
+++ b/src/map/battleground.c
@@ -234,8 +234,8 @@ int bg_team_get_id(struct block_list *bl) {
return md->bg_id;
}
case BL_HOM:
- if( ((TBL_HOM*)bl)->master )
- return ((TBL_HOM*)bl)->master->bg_id;
+ if (((struct homun_data *)bl)->master != NULL)
+ return ((struct homun_data*)bl)->master->bg_id;
break;
case BL_MER:
if( ((TBL_MER*)bl)->master )