summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-30 20:50:28 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-30 20:50:28 +0000
commit54205b1071d55bdd6fef570b6880e3b1970be50d (patch)
treeda28e96091ba015d2b18685acbfec7f5c4d0bcfa /src/map/unit.c
parent4a66e3c8678f844938f73f6af49dae5bc0eb588c (diff)
downloadhercules-54205b1071d55bdd6fef570b6880e3b1970be50d.tar.gz
hercules-54205b1071d55bdd6fef570b6880e3b1970be50d.tar.bz2
hercules-54205b1071d55bdd6fef570b6880e3b1970be50d.tar.xz
hercules-54205b1071d55bdd6fef570b6880e3b1970be50d.zip
Fixed bugreport:6576 changed mvptomb_ to rely on the id rather than the pointer (the tombstone might be unloaded before the monster causing a issue), also removed a unused #define
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16721 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 5568ec1de..52d378879 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2403,7 +2403,7 @@ int unit_free(struct block_list *bl, clr_type clrtype)
}
if( mob_is_clone(md->class_) )
mob_clone_delete(md);
- if( md->tomb_npc )
+ if( md->tomb_nid )
mvptomb_destroy(md);
break;
}