summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-07 18:46:00 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-07 18:46:00 +0000
commitcb279436f65b472f247c3b76843218e9243e8533 (patch)
tree6351e304357e4cc5440be846f35d0bf28d943aa2 /src
parent05a5f1b6548be2871463e395686341d22d7c9372 (diff)
downloadhercules-cb279436f65b472f247c3b76843218e9243e8533.tar.gz
hercules-cb279436f65b472f247c3b76843218e9243e8533.tar.bz2
hercules-cb279436f65b472f247c3b76843218e9243e8533.tar.xz
hercules-cb279436f65b472f247c3b76843218e9243e8533.zip
- Fixed the map_search_freecell error which was making mobs fail to respawn.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8169 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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