summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-08 17:31:28 -0300
committershennetsind <ind@henn.et>2013-06-08 17:31:28 -0300
commit4c31ec091c3dcef916c90b6416976ea701671e90 (patch)
tree421552306c5f014103c6f8efc261e947bbb448c5 /src/map/storage.c
parent60eb0c9e0527e80b7793e48d2cea47e3204b777c (diff)
downloadhercules-4c31ec091c3dcef916c90b6416976ea701671e90.tar.gz
hercules-4c31ec091c3dcef916c90b6416976ea701671e90.tar.bz2
hercules-4c31ec091c3dcef916c90b6416976ea701671e90.tar.xz
hercules-4c31ec091c3dcef916c90b6416976ea701671e90.zip
Follow up d73783f22b2bb881aab74524d153d89a5932a199
Adjusting db.c interface name to adhere with the rest (pretty much we try to make it as short as we can, and being there were no conflicts we saw no reason to maintain the 'i') Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index 17b7c82ae..ea30f6c0f 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -73,7 +73,7 @@ void do_final_storage(void) // by [MC Cameri]
*/
static int storage_reconnect_sub(DBKey key, DBData *data, va_list ap)
{
- struct guild_storage *stor = iDB->data2ptr(data);
+ struct guild_storage *stor = DB->data2ptr(data);
if (stor->dirty && stor->storage_status == 0) //Save closed storages.
storage_guild_storagesave(0, stor->guild_id,0);
@@ -352,7 +352,7 @@ static DBData create_guildstorage(DBKey key, va_list args)
struct guild_storage *gs = NULL;
gs = (struct guild_storage *) aCalloc(sizeof(struct guild_storage), 1);
gs->guild_id=key.i;
- return iDB->ptr2data(gs);
+ return DB->ptr2data(gs);
}
struct guild_storage *guild2storage(int guild_id)