summaryrefslogtreecommitdiff
path: root/src/map/mercenary.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r--src/map/mercenary.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c
index 2beccb554..1b7a3100c 100644
--- a/src/map/mercenary.c
+++ b/src/map/mercenary.c
@@ -186,9 +186,11 @@ void merc_hom_skillup(struct homun_data *hd,int skillnum)
hd->homunculus.hskill[i].lv++ ;
hd->homunculus.skillpts-- ;
status_calc_homunculus(hd,0) ;
- clif_homskillup(hd->master, skillnum) ;
- clif_hominfo(hd->master,hd,0) ;
- clif_homskillinfoblock(hd->master) ;
+ if (hd->master) {
+ clif_homskillup(hd->master, skillnum);
+ clif_hominfo(hd->master,hd,0);
+ clif_homskillinfoblock(hd->master);
+ }
}
}
}