summaryrefslogtreecommitdiff
path: root/src/map/chrif.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/chrif.cpp')
-rw-r--r--src/map/chrif.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp
index 3367f6f..ca4f9ff 100644
--- a/src/map/chrif.cpp
+++ b/src/map/chrif.cpp
@@ -120,11 +120,8 @@ int chrif_save (struct map_session_data *sd)
WFIFOSET (char_fd, WFIFOW (char_fd, 2));
//For data sync
- if (sd->state.storage_flag == 1)
+ if (sd->state.storage_open)
storage_storage_save (sd->status.account_id, 0);
- else if (sd->state.storage_flag == 2)
- storage_guild_storagesave (sd->status.account_id, sd->status.guild_id,
- 0);
return 0;
}