diff options
author | Haru <haru@dotalux.com> | 2014-02-24 10:21:27 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-03-05 22:35:02 +0100 |
commit | d25cc9b7dbc103cf1454db37159ffffeedaac149 (patch) | |
tree | 0e4af566382b946797aa9de21df70b9bdf9d88fa /src/map/chrif.c | |
parent | 78bf8d26567a2054bd9ff5268f9f73cb07d82b98 (diff) | |
download | hercules-d25cc9b7dbc103cf1454db37159ffffeedaac149.tar.gz hercules-d25cc9b7dbc103cf1454db37159ffffeedaac149.tar.bz2 hercules-d25cc9b7dbc103cf1454db37159ffffeedaac149.tar.xz hercules-d25cc9b7dbc103cf1454db37159ffffeedaac149.zip |
Ref redesign, part 2
- Reorganized regs var/array DBMaps into a specific reg_db structure
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 1b87b7b62..059255fde 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -128,11 +128,11 @@ bool chrif_auth_delete(int account_id, int char_id, enum sd_state state) { if ( node->sd ) { - if( node->sd->var_db ) - node->sd->var_db->destroy(node->sd->var_db,script->reg_destroy); + if( node->sd->regs.vars ) + node->sd->regs.vars->destroy(node->sd->regs.vars, script->reg_destroy); - if( node->sd->array_db ) - node->sd->array_db->destroy(node->sd->array_db,script->array_free_db); + if( node->sd->regs.arrays ) + node->sd->regs.arrays->destroy(node->sd->regs.arrays, script->array_free_db); aFree(node->sd); } @@ -1619,11 +1619,11 @@ int auth_db_final(DBKey key, DBData *data, va_list ap) { if (node->sd) { - if( node->sd->var_db ) - node->sd->var_db->destroy(node->sd->var_db,script->reg_destroy); + if( node->sd->regs.vars ) + node->sd->regs.vars->destroy(node->sd->regs.vars, script->reg_destroy); - if( node->sd->array_db ) - node->sd->array_db->destroy(node->sd->array_db,script->array_free_db); + if( node->sd->regs.arrays ) + node->sd->regs.arrays->destroy(node->sd->regs.arrays, script->array_free_db); aFree(node->sd); } |