summaryrefslogtreecommitdiff
path: root/src/map/chrif.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-12-12 22:36:08 -0800
committerBen Longbons <b.r.longbons@gmail.com>2012-12-12 22:36:08 -0800
commit608f959900968e83fd25231c72308fc608742dd5 (patch)
tree33a250f00947d7c83ba50779da466b5f5885db9f /src/map/chrif.cpp
parentd8e5c96fbbed5d526dd77d2e427bcb3090bddd58 (diff)
downloadtmwa-608f959900968e83fd25231c72308fc608742dd5.tar.gz
tmwa-608f959900968e83fd25231c72308fc608742dd5.tar.bz2
tmwa-608f959900968e83fd25231c72308fc608742dd5.tar.xz
tmwa-608f959900968e83fd25231c72308fc608742dd5.zip
Remove guilds, finally
If anyone in the future wonders why I did this, just look at how many lines of code this eliminates.
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;
}