From 7c6673e13fdd75a4137a9d7ef94e04d96e053422 Mon Sep 17 00:00:00 2001 From: smokexyz Date: Tue, 30 May 2017 21:09:58 +0800 Subject: Fix storage saving checks and amount update. Special thanks to @MishimaHaruna for the fix. --- src/map/storage.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/storage.c') 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); -- cgit v1.2.3-60-g2f50