summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 41cc4c13c..101dbbf7e 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9002,6 +9002,10 @@ void clif_parse_MoveToKafra(int fd, struct map_session_data *sd) {
if (item_index < 0 || item_index >= MAX_INVENTORY)
return;
+ if(itemdb_isdropable(sd->status.inventory[item_index].nameid) == 0)
+
+ return;
+
if (sd->state.storage_flag)
storage_guild_storageadd(sd, item_index, item_amount);
else
@@ -10023,6 +10027,9 @@ static int clif_parse(int fd) {
map_deliddb(&sd->bl); // account_id has been included in the DB before auth answer
}
close(fd);
+ if (sd) // ’ljÁ
+
+ map_deliddb(&sd->bl); // ’ljÁ
delete_session(fd);
return 0;
}