summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-12 03:24:37 +0000
committermarkzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-12 03:24:37 +0000
commit5188729a691d15d3d3128e84b2daba274d1788af (patch)
tree679333a0427b5a86566e6b4d3ee9d566b8be4774
parent2ad53bc87be9c4c5e071e3d9372f38edd327e892 (diff)
downloadhercules-5188729a691d15d3d3128e84b2daba274d1788af.tar.gz
hercules-5188729a691d15d3d3128e84b2daba274d1788af.tar.bz2
hercules-5188729a691d15d3d3128e84b2daba274d1788af.tar.xz
hercules-5188729a691d15d3d3128e84b2daba274d1788af.zip
- Follow up r17017, typo fix.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17018 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index d02af4c3f..62cef4fc4 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2714,7 +2714,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
sd->status.max_hp = status_base_pc_maxhp(sd,status);
//This is done to handle underflows from negative Max HP bonuses
i64 = sd->status.max_hp + (int)status->max_hp;
- status->max_hp = cap_value(i, 0, INT_MAX);
+ status->max_hp = (unsigned int)cap_value(i64, 0, INT_MAX);
// Absolute modifiers from passive skills
if((skill=pc_checkskill(sd,CR_TRUST))>0)
@@ -2739,7 +2739,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
sd->status.max_sp = status_base_pc_maxsp(sd,status);
//This is done to handle underflows from negative Max SP bonuses
i64 = sd->status.max_sp + (int)status->max_sp;
- status->max_sp = cap_value(i, 0, INT_MAX);
+ status->max_sp = (unsigned int)cap_value(i64, 0, INT_MAX);
// Absolute modifiers from passive skills
if((skill=pc_checkskill(sd,SL_KAINA))>0)
@@ -3247,7 +3247,7 @@ static unsigned short status_calc_dmotion(struct block_list *bl, struct status_c
static short status_calc_aspd(struct block_list *bl, struct status_change *sc, short flag);
#endif
static short status_calc_fix_aspd(struct block_list *bl, struct status_change *sc, int);
-static unsigned int status_calc_maxhp(struct block_list *,struct status_change *,uint64);
+static unsigned int status_calc_maxhp(struct block_list *,struct status_change *, uint64);
static unsigned int status_calc_maxsp(struct block_list *,struct status_change *,unsigned int);
static unsigned char status_calc_element(struct block_list *bl, struct status_change *sc, int element);
static unsigned char status_calc_element_lv(struct block_list *bl, struct status_change *sc, int lv);