summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-12 21:02:59 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-12 21:02:59 +0000
commit882a3192acdd6ca2a6e50fc0f9fc877bc454efb7 (patch)
treed5cf4bf03fe0c2a8698aa088c0a17ebfe4d4f9a9 /src/map/unit.c
parentcf66ac82f7269a192f31f9465b1187e73635ceb5 (diff)
downloadhercules-882a3192acdd6ca2a6e50fc0f9fc877bc454efb7.tar.gz
hercules-882a3192acdd6ca2a6e50fc0f9fc877bc454efb7.tar.bz2
hercules-882a3192acdd6ca2a6e50fc0f9fc877bc454efb7.tar.xz
hercules-882a3192acdd6ca2a6e50fc0f9fc877bc454efb7.zip
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
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
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);