From 882a3192acdd6ca2a6e50fc0f9fc877bc454efb7 Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 12 Mar 2008 21:02:59 +0000 Subject: Removed one mob data variable related to dynamic mobs that I found to be redundant. Changed MAX_MOBSKILL (max. amount of different skill entries per mob) from 50 to 40 to reduce memory consumption a bit more. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12350 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 98fdb350b..ed5980786 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1890,7 +1890,7 @@ int unit_free(struct block_list *bl, int clrtype) aFree(md->guardian_data); md->guardian_data = NULL; } - if (md->spawn && md->spawn_n < 0 && --(md->spawn->num) == 0) + if (md->spawn && !md->special_state.cached && --(md->spawn->num) == 0) { //Spawning data is not attached to the map, so free it //if this is the last mob who is pointing at it. aFree(md->spawn); -- cgit v1.2.3-60-g2f50