summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-03-10 17:03:08 -0300
committershennetsind <ind@henn.et>2014-03-10 17:03:08 -0300
commit73ab0c441de0f74c2e621a594df7e269ce89bfc5 (patch)
tree9aec530dfa13c548bd3a0bae7039899f7063ab01 /src/map/unit.c
parent1e9b96f85671b8515a3e962c4640575d95768b09 (diff)
downloadhercules-73ab0c441de0f74c2e621a594df7e269ce89bfc5.tar.gz
hercules-73ab0c441de0f74c2e621a594df7e269ce89bfc5.tar.bz2
hercules-73ab0c441de0f74c2e621a594df7e269ce89bfc5.tar.xz
hercules-73ab0c441de0f74c2e621a594df7e269ce89bfc5.zip
Fixed Bug 8046
Fixed issue with permanent statuses being removed during logout for memory-freeing operations, special thanks to streusel and all those who contributed to the bug report. http://hercules.ws/board/tracker/issue-8046-cart-disappearance/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 47cf07ef6..5dd63879f 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2330,6 +2330,8 @@ int unit_free(struct block_list *bl, clr_type clrtype) {
int i;
unsigned int k;
+ sd->state.loggingout = 1;
+
if( status->isdead(bl) )
pc->setrestartvalue(sd,2);