diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-09-02 23:02:35 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-09-02 23:02:35 +0000 |
commit | bc9bfc17f220f1eaecfe1515ceed6e75df2c30ef (patch) | |
tree | 763adac4b3eb2f949377eb1cdfd76debac2a664c /src/map/skill.c | |
parent | c7a6884b345f7f8aaaf65c9529e1cfb8a04609d2 (diff) | |
download | hercules-bc9bfc17f220f1eaecfe1515ceed6e75df2c30ef.tar.gz hercules-bc9bfc17f220f1eaecfe1515ceed6e75df2c30ef.tar.bz2 hercules-bc9bfc17f220f1eaecfe1515ceed6e75df2c30ef.tar.xz hercules-bc9bfc17f220f1eaecfe1515ceed6e75df2c30ef.zip |
Hello! few things.
1) fixed bugreport:6603 - delayed clearunit now makes use of the ERS which is quite convenient for it speeds up due to the previous amount of mallocs that function would spend.
2) added extra debug information to the ERS system (before on any of its warnings we'd go OH MY GOD WHICH ONE OF THEM DID IT!!!), now upon allocation you give it a const, human-readable, name.
3) added support for options in the ERS system to save multiple/redudant processing in battle_delayed_damage and clif_clearunit_delayed and perhaps also in the future.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16736 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 52fec7d52..95570eda6 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -17545,8 +17545,8 @@ int do_init_skill (void) skillunit_db = idb_alloc(DB_OPT_BASE); skillcd_db = idb_alloc(DB_OPT_RELEASE_DATA); skillusave_db = idb_alloc(DB_OPT_RELEASE_DATA); - skill_unit_ers = ers_new(sizeof(struct skill_unit_group)); - skill_timer_ers = ers_new(sizeof(struct skill_timerskill)); + skill_unit_ers = ers_new(sizeof(struct skill_unit_group),"skill.c::skill_unit_ers",ERS_OPT_NONE); + skill_timer_ers = ers_new(sizeof(struct skill_timerskill),"skill.c::skill_timer_ers",ERS_OPT_NONE); add_timer_func_list(skill_unit_timer,"skill_unit_timer"); add_timer_func_list(skill_castend_id,"skill_castend_id"); |