summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-01-16 03:44:07 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-01-16 03:44:07 +0000
commit0529fa63b009df33b06057a7f23670f873cefed9 (patch)
tree221d9096c49340636f82949ef77595dc73214c6b /src/map/pc.c
parent55c32e60060d55f9c720109ec350942a5a2e0c9d (diff)
downloadhercules-0529fa63b009df33b06057a7f23670f873cefed9.tar.gz
hercules-0529fa63b009df33b06057a7f23670f873cefed9.tar.bz2
hercules-0529fa63b009df33b06057a7f23670f873cefed9.tar.xz
hercules-0529fa63b009df33b06057a7f23670f873cefed9.zip
Fixed items don't grant skill if you had this skill before and then changed your job.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14219 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 c853bd452..56b3fd990 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2981,9 +2981,9 @@ int pc_skill(TBL_PC* sd, int id, int level, int flag)
sd->status.skill[id].lv += level;
break;
case 1: //Item bonus skill.
- if( sd->status.skill[id].lv >= level )
- return 0;
if( sd->status.skill[id].id == id ){
+ if( sd->status.skill[id].lv >= level )
+ return 0;
if( !sd->status.skill[id].flag ) //Non-granted skill, store it's level.
sd->status.skill[id].flag = sd->status.skill[id].lv + 2;
} else {