From 7507a6c8c88e91e58846bf5e655b6addefea5baa Mon Sep 17 00:00:00 2001 From: panikon Date: Tue, 11 Feb 2014 19:54:07 -0200 Subject: Fixed bug 7977 as in rAthena revf488861298d50afb41f8418700ae164e63bee070 --- src/map/mob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/mob.c b/src/map/mob.c index dc83be93e..30658051c 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -447,7 +447,7 @@ struct mob_data *mob_once_spawn_sub(struct block_list *bl, int16 m, int16 x, int map->search_freecell(bl, m, &x, &y, 1, 1, 0); // if none found, pick random position on map - if (x <= 0 || y <= 0 || map->getcell(m,x,y,CELL_CHKNOREACH)) + if (x <= 0 || x >= map->list[m].xs || y <= 0 || y >= map->list[m].ys) map->search_freecell(NULL, m, &x, &y, -1, -1, 1); data.x = x; -- cgit v1.2.3-60-g2f50