diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-18 15:02:27 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-18 15:02:27 +0000 |
commit | b53754439bd3d14e78bfbda86f17c89bd95f78d0 (patch) | |
tree | 85c6cc95c967154819ed677650c4fccb9abe43b8 | |
parent | 65148fe27a9957558c924772164fb35e1174c2ea (diff) | |
download | hercules-b53754439bd3d14e78bfbda86f17c89bd95f78d0.tar.gz hercules-b53754439bd3d14e78bfbda86f17c89bd95f78d0.tar.bz2 hercules-b53754439bd3d14e78bfbda86f17c89bd95f78d0.tar.xz hercules-b53754439bd3d14e78bfbda86f17c89bd95f78d0.zip |
* [Fixed]:
- clif_initialstatus using SHRT_MAX instead of USHRT_MAX for status_point
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7237 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/clif.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 478569d64..04bcc73a9 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/06/18
+ * [Fixed]:
+ - clif_initialstatus using SHRT_MAX instead of USHRT_MAX for status_point.
* [Temperory Fixed]:
- Crashing of SQL char-server in parse_frommap case 0x2b01. [Lance]
* [Removed]:
diff --git a/src/map/clif.c b/src/map/clif.c index 1ff36c7ec..ed187a44d 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -2863,7 +2863,7 @@ int clif_initialstatus(struct map_session_data *sd) buf=WFIFOP(fd,0);
WBUFW(buf,0)=0xbd;
- WBUFW(buf,2)=(sd->status.status_point > SHRT_MAX)? SHRT_MAX:sd->status.status_point;
+ WBUFW(buf,2)=(sd->status.status_point > USHRT_MAX)? USHRT_MAX:sd->status.status_point;
WBUFB(buf,4)=(sd->status.str > UCHAR_MAX)? UCHAR_MAX:sd->status.str;
WBUFB(buf,5)=pc_need_status_point(sd,SP_STR);
WBUFB(buf,6)=(sd->status.agi > UCHAR_MAX)? UCHAR_MAX:sd->status.agi;
|