summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-02-05 07:18:05 +0300
committerAndrei Karas <akaras@inbox.ru>2019-02-11 03:22:45 +0300
commit3514f4405c2a822be2350fed27fe2d15cad7152c (patch)
tree03bea033e3579d5245e773b82e903c6345b1b4fa /src/map/battle.c
parent8c04536cf64dd3a7c233d9631eceb23f7207ad9c (diff)
downloadhercules-3514f4405c2a822be2350fed27fe2d15cad7152c.tar.gz
hercules-3514f4405c2a822be2350fed27fe2d15cad7152c.tar.bz2
hercules-3514f4405c2a822be2350fed27fe2d15cad7152c.tar.xz
hercules-3514f4405c2a822be2350fed27fe2d15cad7152c.zip
Change type for class variables from short to int
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index f51240810..6fa46a7c7 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1019,7 +1019,7 @@ static int64 battle_calc_cardfix(int attack_type, struct block_list *src, struct
{
struct map_session_data *sd, *tsd;
int cardfix = 1000;
- short t_class, s_class, s_race2, t_race2;
+ int t_class, s_class, s_race2, t_race2;
struct status_data *sstatus, *tstatus;
int i;
@@ -5552,7 +5552,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src, struct bl
#endif
if( flag.infdef ) { //Plants receive 1 damage when hit
- short class_ = status->get_class(target);
+ int class_ = status->get_class(target);
if( flag.hit || wd.damage > 0 )
wd.damage = wd.div_; // In some cases, right hand no need to have a weapon to increase damage
if( flag.lh && (flag.hit || wd.damage2 > 0) )