summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
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);