summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-14 09:31:47 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-14 09:31:47 +0000
commitfefc60d0a202e489ebc0d999f13a0abcc638518a (patch)
treefba77837fbe8e56d7f71cd3a83716a231ba993b6 /src/map/pc.c
parente932e59a70601716c75daffa6cc43cbfcf0e2334 (diff)
downloadhercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.tar.gz
hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.tar.bz2
hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.tar.xz
hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.zip
Fixed some homunculus skill offset calculation mistakes (bugreport:363)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11731 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
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;
}