summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-24 19:37:20 -0300
committershennetsind <ind@henn.et>2013-02-24 19:37:20 -0300
commit5c667ccb1e95614177d5c849761040be09abc746 (patch)
treea1845061dacd114f1de11ee64317d36b238857a3
parent745497a5ae2a351b28668ea6cb333a2fcd40e460 (diff)
downloadhercules-5c667ccb1e95614177d5c849761040be09abc746.tar.gz
hercules-5c667ccb1e95614177d5c849761040be09abc746.tar.bz2
hercules-5c667ccb1e95614177d5c849761040be09abc746.tar.xz
hercules-5c667ccb1e95614177d5c849761040be09abc746.zip
Fixed logical issue / gcc warning
Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 36237c79e..7fc9ad237 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -5215,7 +5215,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
case BL_MOB:
if(((((TBL_MOB*)target)->special_state.ai == 2 || //Marine Spheres
(((TBL_MOB*)target)->special_state.ai == 3 && battle_config.summon_flora&1)) && //Floras
- s_bl->type == BL_PC && src->type != BL_MOB) || ((TBL_MOB*)target)->special_state.ai == 4 && t_bl->id != s_bl->id) //Zanzoe
+ s_bl->type == BL_PC && src->type != BL_MOB) || (((TBL_MOB*)target)->special_state.ai == 4 && t_bl->id != s_bl->id)) //Zanzoe
{ //Targettable by players
state |= BCT_ENEMY;
strip_enemy = 0;