summaryrefslogtreecommitdiff
path: root/src/common/db.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-29 10:39:36 -0300
committershennetsind <ind@henn.et>2013-07-29 10:39:36 -0300
commit1caae981b4f000b67bdd0b118fb76797c2bfa06c (patch)
treeafcf1f2881cfc88029fab7d0fdc161d0e04df9d7 /src/common/db.c
parent2eab181cece04d8c6a79f9d1a3ff74343cd3ae76 (diff)
downloadhercules-1caae981b4f000b67bdd0b118fb76797c2bfa06c.tar.gz
hercules-1caae981b4f000b67bdd0b118fb76797c2bfa06c.tar.bz2
hercules-1caae981b4f000b67bdd0b118fb76797c2bfa06c.tar.xz
hercules-1caae981b4f000b67bdd0b118fb76797c2bfa06c.zip
Ultimate Item DB Update
http://hercules.ws/board/topic/1778-ultimate-item-db-update/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common/db.c')
-rw-r--r--src/common/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/db.c b/src/common/db.c
index 99c758a8d..bd2bea424 100644
--- a/src/common/db.c
+++ b/src/common/db.c
@@ -1791,9 +1791,9 @@ static int db_obj_put(DBMap* self, DBKey key, DBData data, DBData *out_data)
if (node->deleted) {
db_free_remove(db, node);
} else {
- db->release(node->key, node->data, DB_RELEASE_BOTH);
if (out_data)
memcpy(out_data, &node->data, sizeof(*out_data));
+ db->release(node->key, node->data, DB_RELEASE_BOTH);
retval = 1;
}
break;