summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-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 a7832a972..0c76cdb27 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -638,7 +638,7 @@ int mob_spawn (struct mob_data *md)
if ((md->bl.x == 0 && md->bl.y == 0) || md->spawn->xs || md->spawn->ys)
{ //Monster can be spawned on an area.
- if (!map_search_freecell(NULL, -1,
+ if (!map_search_freecell(&md->bl, -1,
&md->bl.x, &md->bl.y, md->spawn->xs, md->spawn->ys,
battle_config.no_spawn_on_player?4:0)) {
// retry again later