summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-10-05 02:37:50 -0300
committershennetsind <ind@henn.et>2014-10-05 02:37:50 -0300
commita6c4c6384398a250099c86a1605d63f83f108905 (patch)
treed5dbc0cd1c3732860ddf1bed827a69dd53195254 /src/map/pc.c
parenta46b190764df4cce0b378bc691218ac0814a5673 (diff)
downloadhercules-a6c4c6384398a250099c86a1605d63f83f108905.tar.gz
hercules-a6c4c6384398a250099c86a1605d63f83f108905.tar.bz2
hercules-a6c4c6384398a250099c86a1605d63f83f108905.tar.xz
hercules-a6c4c6384398a250099c86a1605d63f83f108905.zip
Follow up a46b190764df4cce0b378bc691218ac0814a5673
Dropped id2storage entirely, replaced with idb_get (1) it was redundant 2) the rename on a46b190764df4cce0b378bc691218ac0814a5673 was a very poor choice as plugins using the previous version would be calling the other). Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 194ea8264..697a24507 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4728,7 +4728,7 @@ void pc_bound_clear(struct map_session_data *sd, enum e_item_bound_type type) {
ShowError("Helllo! You reached pc_bound_clear for IBT_ACCOUNT, unfortunately no scenario was expected for this!\n");
break;
case IBT_GUILD: {
- struct guild_storage *gstor = gstorage->id2storage(sd->status.guild_id);
+ struct guild_storage *gstor = idb_get(gstorage->db,sd->status.guild_id);
for( i = 0; i < MAX_INVENTORY; i++ ){
if(sd->status.inventory[i].bound == type) {
@@ -9212,7 +9212,7 @@ int pc_checkitem(struct map_session_data *sd)
}
if (sd->guild) {
- struct guild_storage *guild_storage = gstorage->id2storage(sd->guild->guild_id);
+ struct guild_storage *guild_storage = idb_get(gstorage->db,sd->guild->guild_id);
if (guild_storage) {
for( i = 0; i < MAX_GUILD_STORAGE; i++ ) {
id = guild_storage->items[i].nameid;