summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-17 16:09:47 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-17 16:09:47 +0000
commit44911e08020b7d510ebe64b1e499005fb04395c1 (patch)
tree0bb4031827365e06bced17ac528e22fa3ad6933d /src/map/npc.c
parentb719a7594246a5716926dd0b7df6ab8adb97424d (diff)
downloadhercules-44911e08020b7d510ebe64b1e499005fb04395c1.tar.gz
hercules-44911e08020b7d510ebe64b1e499005fb04395c1.tar.bz2
hercules-44911e08020b7d510ebe64b1e499005fb04395c1.tar.xz
hercules-44911e08020b7d510ebe64b1e499005fb04395c1.zip
* Fixed npc_cleanup_dbsub not removing key and caused pointer being freed problem.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5645 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 4e6842b97..8f9e5ed81 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2794,6 +2794,7 @@ static int npc_cleanup_sub (struct block_list *bl, va_list ap) {
}
static int npc_cleanup_dbsub(DBKey key,void * data,va_list app) {
+ map_deliddb((struct block_list*)data);
return npc_cleanup_sub((struct block_list*)data, 0);
}