diff options
author | Haru <haru@dotalux.com> | 2018-04-07 23:34:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-07 23:34:46 +0200 |
commit | 189f2ecf6a52937806a8921673c9be6b4157ebf1 (patch) | |
tree | 1102cd6938564b38027cf427be861033bc8028d1 /src/map/itemdb.c | |
parent | 1286588a17efa51f5c56a1e110bc8d6f8f887e5b (diff) | |
parent | d269ece7b9c4315b59dc5aac970362cc36139be3 (diff) | |
download | hercules-189f2ecf6a52937806a8921673c9be6b4157ebf1.tar.gz hercules-189f2ecf6a52937806a8921673c9be6b4157ebf1.tar.bz2 hercules-189f2ecf6a52937806a8921673c9be6b4157ebf1.tar.xz hercules-189f2ecf6a52937806a8921673c9be6b4157ebf1.zip |
Merge pull request #1990 from Asheraf/attendance_ui
Implementation of Attendance system
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 17a73400a..7f0ebb39c 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -2387,6 +2387,8 @@ void itemdb_read(bool minimal) { if (minimal) return; + itemdb->name_constants(); + itemdb->read_combos(); itemdb->read_groups(); itemdb->read_chains(); @@ -2619,6 +2621,7 @@ void do_final_itemdb(void) { itemdb->options->destroy(itemdb->options, itemdb->options_final_sub); itemdb->destroy_item_data(&itemdb->dummy, 0); db_destroy(itemdb->names); + VECTOR_CLEAR(clif->attendance_data); } void do_init_itemdb(bool minimal) { @@ -2637,6 +2640,8 @@ void do_init_itemdb(bool minimal) { /** it failed? we disable it **/ if (battle_config.feature_roulette == 1 && !clif->parse_roulette_db()) battle_config.feature_roulette = 0; + VECTOR_INIT(clif->attendance_data); + clif->pAttendanceDB(); } void itemdb_defaults(void) { itemdb = &itemdb_s; |