summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-02 09:40:01 +0000
committerglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-02 09:40:01 +0000
commitbdc1c715db65c2d9378dcff685c4b6b87d752da7 (patch)
tree8e61570a2c4e91eaa34c96e2967068e1e927ec07 /src/map/pc.c
parent063d2e1d4f802a4379bef408ce968a49d209f90f (diff)
downloadhercules-bdc1c715db65c2d9378dcff685c4b6b87d752da7.tar.gz
hercules-bdc1c715db65c2d9378dcff685c4b6b87d752da7.tar.bz2
hercules-bdc1c715db65c2d9378dcff685c4b6b87d752da7.tar.xz
hercules-bdc1c715db65c2d9378dcff685c4b6b87d752da7.zip
-Follow up r17065
--removing useless check on skill_id --fix few broken atcommand due to failed sscanf -Change skill_amotion_leniency as pointed out on tid:76492 so amotion delay wont be twice by default, (also increase intervall if you do want higher acd) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17072 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 3af065db8..c7d5b87f0 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4882,7 +4882,7 @@ int pc_checkskill(struct map_session_data *sd,uint16 skill_id)
return guild_checkskill(g,skill_id);
return 0;
}
- else if( skill_id < 0 || skill_id >= ARRAYLENGTH(sd->status.skill) )
+ else if(skill_id >= ARRAYLENGTH(sd->status.skill) )
{
ShowError("pc_checkskill: Invalid skill id %d (char_id=%d).\n", skill_id, sd->status.char_id);
return 0;
@@ -5976,7 +5976,7 @@ int pc_skillup(struct map_session_data *sd,uint16 skill_id)
return 0;
}
- if( skill_id < 0 || skill_id >= MAX_SKILL )
+ if(skill_id >= MAX_SKILL )
return 0;
if( sd->status.skill_point > 0 &&