diff options
author | smokexyz <sagunkho@hotmail.com> | 2017-05-30 21:09:58 +0800 |
---|---|---|
committer | smokexyz <sagunkho@hotmail.com> | 2017-05-30 21:11:15 +0800 |
commit | 7c6673e13fdd75a4137a9d7ef94e04d96e053422 (patch) | |
tree | 25976e78fea70001b534903f92db591a16934412 /src/map | |
parent | d966a8e6860d418bb3a235e57928436127eba555 (diff) | |
download | hercules-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')
-rw-r--r-- | src/map/storage.c | 2 |
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); |