diff options
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 5ce0cae1f..5c46708b1 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4544,12 +4544,12 @@ int pc_skillup(struct map_session_data *sd,int skill_num) { nullpo_retr(0, sd); - if(skill_num >= GD_SKILLBASE){ + if(skill_num >= GD_SKILLBASE && skill_num < GD_SKILLBASE+MAX_GUILDSKILL){ guild_skillup(sd, skill_num); return 0; } - if(skill_num >= HM_SKILLBASE && sd->hd){ + if(skill_num >= HM_SKILLBASE && skill_num < HM_SKILLBASE+MAX_HOMUNSKILL && sd->hd){ merc_hom_skillup(sd->hd, skill_num); return 0; } |