summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-18 21:51:08 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-18 21:51:08 +0000
commit380cf32eb6eab01d1d6786f9a1255a68a5f9aa1a (patch)
tree238e6d2fdffe627e0e4e89e91aee1396dad9bc11 /src/map/unit.c
parent55cb028a87b11bd7cbc06a3fcdba4f77032fa6c6 (diff)
downloadhercules-380cf32eb6eab01d1d6786f9a1255a68a5f9aa1a.tar.gz
hercules-380cf32eb6eab01d1d6786f9a1255a68a5f9aa1a.tar.bz2
hercules-380cf32eb6eab01d1d6786f9a1255a68a5f9aa1a.tar.xz
hercules-380cf32eb6eab01d1d6786f9a1255a68a5f9aa1a.zip
Little optimization on MVP tombstone system, maybe fix insane CPU usage spikes(bugreport:5968).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16318 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 c955fa686..6d4c9b9cf 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2331,7 +2331,7 @@ int unit_free(struct block_list *bl, clr_type clrtype)
}
if( mob_is_clone(md->class_) )
mob_clone_delete(md);
- if( md->tomb_nid )
+ if( md->tomb_npc )
mvptomb_destroy(md);
break;
}