summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/atcommand.c2
-rw-r--r--src/map/mob.c2
-rw-r--r--src/map/skill.c2
3 files changed, 2 insertions, 4 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index b7d172f35..48ee58056 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1296,8 +1296,6 @@ int atcommand_where(
}
pl_sd = map_nick2sd(atcmd_player_name);
- pl_sd = map_nick2sd(atcmd_player_name);
-
if (pl_sd == NULL)
return -1;
diff --git a/src/map/mob.c b/src/map/mob.c
index 9e0c9b08a..c6248ca56 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1419,7 +1419,7 @@ static int mob_ai_sub_lazy(DBKey key,void * data,va_list app)
nullpo_retr(0, md);
nullpo_retr(0, app);
- if(md->bl.type!=BL_MOB)
+ if(md->bl.type!=BL_MOB || md->bl.prev == NULL)
return 0;
ap = va_arg(app, va_list);
diff --git a/src/map/skill.c b/src/map/skill.c
index 88308c33d..5537e1349 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6557,7 +6557,7 @@ struct skill_unit_group *skill_unitsetting( struct block_list *src, int skillid,
if (alive && battle_config.skill_wall_check) {
//Check if there's a path between cell and center of casting.
struct walkpath_data wpd;
- if (path_search2(&wpd,src->m,ux,uy,x,y,0x30001)==-1)
+ if (path_search2(&wpd,src->m,ux,uy,x,y,0x1)==-1)
alive = 0;
}