From bf84469438ef780dfc49d90bb07e8feab984d53b Mon Sep 17 00:00:00 2001 From: aleos89 Date: Fri, 26 Aug 2016 14:41:22 -0400 Subject: [PATCH] Adjusted battle_getcurrentskill() return type * Adjusted the function's return type to uint16 to match the skill_id variable type. --- src/map/battle.c | 2 +- src/map/battle.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/battle.c b/src/map/battle.c index 38d4501f7b6..d5c51918b73 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -36,7 +36,7 @@ static struct eri *delay_damage_ers; //For battle delay damage structures. * @param bl * @return skill_id */ -int battle_getcurrentskill(struct block_list *bl) +uint16 battle_getcurrentskill(struct block_list *bl) { struct unit_data *ud; diff --git a/src/map/battle.h b/src/map/battle.h index 318c2cb9931..cea5afd1dbc 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -110,7 +110,7 @@ struct block_list* battle_get_master(struct block_list *src); struct block_list* battle_gettargeted(struct block_list *target); struct block_list* battle_getenemy(struct block_list *target, int type, int range); int battle_gettarget(struct block_list *bl); -int battle_getcurrentskill(struct block_list *bl); +uint16 battle_getcurrentskill(struct block_list *bl); int battle_check_undead(int race,int element); int battle_check_target(struct block_list *src, struct block_list *target,int flag);