From 2255eaf16e44eb6959d309a4c7167d37908eb620 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 28 Jan 2007 01:50:39 +0000 Subject: Made @reloadscript wipe ALL previous mobs that the script engine spawned - this way it is manageable via global vars; the other way doesn't allow that git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9734 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index 8c7ac76da..c1caa3fee 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2852,9 +2852,7 @@ static int npc_cleanup_sub (struct block_list *bl, va_list ap) { npc_unload((struct npc_data *)bl); break; case BL_MOB: - //This is used only on reloading npcs, so let's not free spawn-once mobs. [Skotlex] - if (((TBL_MOB*)bl)->spawn) - unit_free(bl,0); + unit_free(bl,0); break; } -- cgit v1.2.3-60-g2f50