summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-23 02:33:29 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-23 02:33:29 +0000
commit7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133 (patch)
treef7902360af44bb52e484ce34a27a567ecc64c4e5 /src/map/map.c
parent726dfead1497c0c01c9725ab0a83d1b339226498 (diff)
downloadhercules-7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133.tar.gz
hercules-7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133.tar.bz2
hercules-7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133.tar.xz
hercules-7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133.zip
add spawn
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@741 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 0a9191e27..f9d14ac50 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1040,8 +1040,10 @@ int map_quit(struct map_session_data *sd) {
sd->alive_timer = 0;
}
- if( sd->npc_stackbuf && sd->npc_stackbuf != NULL)
+ if( sd->npc_stackbuf && sd->npc_stackbuf != NULL) {
free( sd->npc_stackbuf );
+ sd->npc_stackbuf = NULL;
+ }
map_delblock(&sd->bl);