diff options
author | shennetsind <ind@henn.et> | 2014-10-05 02:11:23 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-10-05 02:11:23 -0300 |
commit | a46b190764df4cce0b378bc691218ac0814a5673 (patch) | |
tree | 37c8e37d62f9f4502640cd685495b9418580cfe6 /src/map/intif.c | |
parent | f51106c9312e9f1b434fc4460416d80db56ac547 (diff) | |
download | hercules-a46b190764df4cce0b378bc691218ac0814a5673.tar.gz hercules-a46b190764df4cce0b378bc691218ac0814a5673.tar.bz2 hercules-a46b190764df4cce0b378bc691218ac0814a5673.tar.xz hercules-a46b190764df4cce0b378bc691218ac0814a5673.zip |
Follow up b9b32ac7609e
Fixes issue where kicking a online guild member (on a server with GP_BOUND_ITEMS defined) would render the guilds storage (if not previously loaded during the servers lifespan (since boot)) to be wiped.
Special Thanks to Xgear!
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/intif.c')
-rw-r--r-- | src/map/intif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/intif.c b/src/map/intif.c index fc38e82e3..59c3c71e8 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -1098,7 +1098,7 @@ void intif_parse_LoadGuildStorage(int fd) return; } } - gstor=gstorage->id2storage(guild_id); + gstor=gstorage->ensure(guild_id); if(!gstor) { ShowWarning("intif_parse_LoadGuildStorage: error guild_id %d not exist\n",guild_id); return; @@ -2165,7 +2165,7 @@ void intif_parse_MessageToFD(int fd) { *------------------------------------------*/ void intif_itembound_req(int char_id,int aid,int guild_id) { #ifdef GP_BOUND_ITEMS - struct guild_storage *gstor = gstorage->id2storage2(guild_id); + struct guild_storage *gstor = gstorage->id2storage(guild_id); WFIFOHEAD(inter_fd,12); WFIFOW(inter_fd,0) = 0x3056; WFIFOL(inter_fd,2) = char_id; @@ -2183,7 +2183,7 @@ void intif_parse_Itembound_ack(int fd) { struct guild_storage *gstor; int guild_id = RFIFOW(fd,6); - gstor = gstorage->id2storage2(guild_id); + gstor = gstorage->id2storage(guild_id); if(gstor) gstor->lock = 0; //Unlock now that operation is completed #endif |