diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/mob.c | 2 | ||||
-rw-r--r-- | src/map/npc.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index b9cc38ca9..026f08c84 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -903,8 +903,6 @@ int mob_spawn (struct mob_data *md) add_timer(tick+5000,mob_delayspawn,md->bl.id,0); return 1; } - - md->spawn->active++; } memset(&md->state, 0, sizeof(md->state)); diff --git a/src/map/npc.c b/src/map/npc.c index 4b6231cf0..68b979a28 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2186,6 +2186,7 @@ void npc_parse_mob2(struct spawn_data* mob) { struct mob_data* md = mob_spawn_dataset(mob); md->spawn = mob; + md->spawn->active++; mob_spawn(md); } } |