diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-14 23:52:01 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-14 23:52:01 +0000 |
commit | cffd40f5ba4897e1099ba843dac80363f4a20aca (patch) | |
tree | 51d8acfbdca1c21a098bb03f76b62f612154dafe /src/map/pc.c | |
parent | fd3e05f2efdfb6844cb213658213d782cbbd9af2 (diff) | |
download | hercules-cffd40f5ba4897e1099ba843dac80363f4a20aca.tar.gz hercules-cffd40f5ba4897e1099ba843dac80363f4a20aca.tar.bz2 hercules-cffd40f5ba4897e1099ba843dac80363f4a20aca.tar.xz hercules-cffd40f5ba4897e1099ba843dac80363f4a20aca.zip |
- Fixed skill_notok blocking guild skills
- Fixed Napalm vulcan's time2 entry in the skill_cast_db
- Removed a pair of debug switches that shouldn't be needed anymore.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5604 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index acdf2e62c..fe2783272 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5090,7 +5090,10 @@ int pc_resetstate(struct map_session_data* sd) add += sumsp(sd->status.int_);
add += sumsp(sd->status.dex);
add += sumsp(sd->status.luk);
- sd->status.status_point+=add;
+ if (add > SHRT_MAX - sd->status.status_point)
+ sd->status.status_point = SHRT_MAX;
+ else
+ sd->status.status_point+=add;
}
sd->status.str=1;
|