瀏覽代碼

Adjusted battle_getcurrentskill() return type
* Adjusted the function's return type to uint16 to match the skill_id variable type.

aleos89 8 年之前
父節點
當前提交
bf84469438
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/map/battle.c
  2. 1 1
      src/map/battle.h

+ 1 - 1
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;
 

+ 1 - 1
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);