summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorsmokexyz <sagunkho@hotmail.com>2017-05-30 21:42:54 +0800
committerGitHub <noreply@github.com>2017-05-30 21:42:54 +0800
commitd90e8ce0d8ba8677567a5a5adebb62ba97e8a0b3 (patch)
tree85da191a6392db3d850e17b837ee57b32cafa990 /src/map
parent8c5b8ac7d87d8d4dc49d3ff1768f8884a0d75d72 (diff)
parent7c6673e13fdd75a4137a9d7ef94e04d96e053422 (diff)
downloadhercules-d90e8ce0d8ba8677567a5a5adebb62ba97e8a0b3.tar.gz
hercules-d90e8ce0d8ba8677567a5a5adebb62ba97e8a0b3.tar.bz2
hercules-d90e8ce0d8ba8677567a5a5adebb62ba97e8a0b3.tar.xz
hercules-d90e8ce0d8ba8677567a5a5adebb62ba97e8a0b3.zip
Merge pull request #1756 from Smokexyz/mmo_charstatus-fix
Fix storage saving checks and amount update.
Diffstat (limited to 'src/map')
-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);