summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-02-11 19:54:07 -0200
committerpanikon <panikon@zoho.com>2014-02-11 19:54:07 -0200
commit7507a6c8c88e91e58846bf5e655b6addefea5baa (patch)
tree4814349d553ed5914383d3f84eed480c73532615
parent342d14d2db5bff8a0d6912c217480f19578b0ca4 (diff)
downloadhercules-7507a6c8c88e91e58846bf5e655b6addefea5baa.tar.gz
hercules-7507a6c8c88e91e58846bf5e655b6addefea5baa.tar.bz2
hercules-7507a6c8c88e91e58846bf5e655b6addefea5baa.tar.xz
hercules-7507a6c8c88e91e58846bf5e655b6addefea5baa.zip
Fixed bug 7977 as in rAthena revf488861298d50afb41f8418700ae164e63bee070
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
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;