summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorcodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-24 22:27:20 +0000
committercodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-24 22:27:20 +0000
commita093dbfa6658df2636c83afb833508cc08ecb018 (patch)
treea9a614c1fed79ba3e743eddfae2c630137c5fe9c /src/map/clif.c
parent4037e93e4fc65c1be4beb632074beeadd413ffc3 (diff)
downloadhercules-a093dbfa6658df2636c83afb833508cc08ecb018.tar.gz
hercules-a093dbfa6658df2636c83afb833508cc08ecb018.tar.bz2
hercules-a093dbfa6658df2636c83afb833508cc08ecb018.tar.xz
hercules-a093dbfa6658df2636c83afb833508cc08ecb018.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@354 54d463be-8e91-2dee-dedb-b68131a5f0ec
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;
}