summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/storage.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index ca7fa8b..30a8b4c 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -295,7 +295,7 @@ int storage_storagegettocart(struct map_session_data *sd,int index,int amount)
*/
int storage_storageclose(struct map_session_data *sd)
{
- struct storage *stor;
+ struct storage *stor=NULL;
nullpo_retr(0, sd);
nullpo_retr(0, stor=account2storage(sd->status.account_id));
@@ -304,6 +304,9 @@ int storage_storageclose(struct map_session_data *sd)
sd->state.storage_flag = 0;
clif_storageclose(sd);
+ chrif_save(sd);
+ storage_storage_save(sd);
+
sortage_sortitem(stor);
return 0;
}