summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
authorsmokexyz <sagunkho@hotmail.com>2017-05-30 21:09:58 +0800
committersmokexyz <sagunkho@hotmail.com>2017-05-30 21:11:15 +0800
commit7c6673e13fdd75a4137a9d7ef94e04d96e053422 (patch)
tree25976e78fea70001b534903f92db591a16934412 /src/map/storage.c
parentd966a8e6860d418bb3a235e57928436127eba555 (diff)
downloadhercules-7c6673e13fdd75a4137a9d7ef94e04d96e053422.tar.gz
hercules-7c6673e13fdd75a4137a9d7ef94e04d96e053422.tar.bz2
hercules-7c6673e13fdd75a4137a9d7ef94e04d96e053422.tar.xz
hercules-7c6673e13fdd75a4137a9d7ef94e04d96e053422.zip
Fix storage saving checks and amount update.
Special thanks to @MishimaHaruna for the fix.
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index 4aefaae96..9f2446273 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -220,6 +220,8 @@ int storage_additem(struct map_session_data* sd, struct item* item_data, int amo
*it = *item_data;
}
+ it->amount = amount;
+
sd->storage.aggregate++;
clif->storageitemadded(sd, it, i, amount);