summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-21 22:22:35 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-21 23:18:40 +0300
commitc11f17020732d96e6830deadb8272f66c9af623b (patch)
tree23694297ff60d27ee6d60aa041141a6264a244db /src/map/skill.c
parentc3f46b2c8f3d05a44c2d7388756666e98b9323bb (diff)
downloadhercules-c11f17020732d96e6830deadb8272f66c9af623b.tar.gz
hercules-c11f17020732d96e6830deadb8272f66c9af623b.tar.bz2
hercules-c11f17020732d96e6830deadb8272f66c9af623b.tar.xz
hercules-c11f17020732d96e6830deadb8272f66c9af623b.zip
Convert some functions from int32 types to int64.
This mainly need for base and job exp, because now they using int64 type.
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index f263b0690..a84955377 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -13833,8 +13833,8 @@ int skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_id
case PR_REDEMPTIO:
{
int exp;
- if( ((exp = pc->nextbaseexp(sd)) > 0 && get_percentage(sd->status.base_exp, exp) < 1) ||
- ((exp = pc->nextjobexp(sd)) > 0 && get_percentage(sd->status.job_exp, exp) < 1)) {
+ if( ((exp = pc->nextbaseexp(sd)) > 0 && get_percentage64(sd->status.base_exp, exp) < 1) ||
+ ((exp = pc->nextjobexp(sd)) > 0 && get_percentage64(sd->status.job_exp, exp) < 1)) {
clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); //Not enough exp.
return 0;
}