- Follow up r17017, typo fix.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17018 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
markzd 2012-12-12 03:24:37 +00:00
parent 39a6e86b98
commit 0f07e788a4

View File

@ -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)