summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-24 21:46:27 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-24 21:46:27 +0300
commite2fec6a64a403df523d64540f70c73b99fbf491c (patch)
tree34ee4d272252990071bd84cff303b956e4b57c21 /src/map/unit.c
parentcf9c4ca35fefcf392269179785371b679689364c (diff)
downloadplugin-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.gz
plugin-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.bz2
plugin-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.xz
plugin-e2fec6a64a403df523d64540f70c73b99fbf491c.zip
map: add missing checks.
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 01dedc2..5a1ca83 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -26,7 +26,6 @@ int eunit_can_move(struct block_list *bl)
struct unit_data *ud;
struct status_change *sc;
-
if (!bl)
{
hookStop();
@@ -136,9 +135,9 @@ int eunit_can_move(struct block_list *bl)
if(md && ((md->status.mode&MD_BOSS && battle->bc->boss_icewall_walk_block == 1 && map->getcell(bl->m,bl->x,bl->y,CELL_CHKICEWALL))
|| (!(md->status.mode&MD_BOSS) && battle->bc->mob_icewall_walk_block == 1 && map->getcell(bl->m,bl->x,bl->y,CELL_CHKICEWALL))))
{
- md->walktoxy_fail_count = 1; //Make sure rudeattacked skills are invoked
+ md->walktoxy_fail_count = 1; //Make sure rudeattacked skills are invoked
hookStop();
- return 0;
+ return 0;
}
}