From 5188729a691d15d3d3128e84b2daba274d1788af Mon Sep 17 00:00:00 2001 From: markzd Date: Wed, 12 Dec 2012 03:24:37 +0000 Subject: - Follow up r17017, typo fix. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17018 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map') 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); -- cgit v1.2.3-70-g09d2