diff options
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index 70dc79cac..abcd26440 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1706,6 +1706,13 @@ int map_quit(struct map_session_data *sd) { sd->st = NULL; sd->npc_id = 0; } +#ifndef TXT_ONLY + if(charsave_method) + { //Let player be free'd on closing the connection. + idb_remove(pc_db,sd->status.account_id); + return 0; + } +#endif if(sd->fd) { //Player will be free'd on save-ack. [Skotlex] if (session[sd->fd]) |