summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmokexyz <sagunkho@hotmail.com>2017-05-30 21:53:58 +0800
committerGitHub <noreply@github.com>2017-05-30 21:53:58 +0800
commitb950a589e59e2bf074f67c75aaacf3f82424d4fe (patch)
treeeb62320b415d8fe9cd9c9c315338b2e4e43c97bc
parentd90e8ce0d8ba8677567a5a5adebb62ba97e8a0b3 (diff)
downloadhercules-b950a589e59e2bf074f67c75aaacf3f82424d4fe.tar.gz
hercules-b950a589e59e2bf074f67c75aaacf3f82424d4fe.tar.bz2
hercules-b950a589e59e2bf074f67c75aaacf3f82424d4fe.tar.xz
hercules-b950a589e59e2bf074f67c75aaacf3f82424d4fe.zip
Fix saving of storage for non-stackable items.
Thanks to @MishimaHaruna for the fix.
-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 9f2446273..01e7c7c27 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -200,6 +200,8 @@ int storage_additem(struct map_session_data* sd, struct item* item_data, int amo
clif->storageitemadded(sd, it, i, amount);
+ sd->storage.save = true; // set a save flag.
+
return 0;
}
}