diff options
author | shennetsind <ind@henn.et> | 2014-01-12 13:27:53 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-01-12 13:27:53 -0200 |
commit | 209d15e07d52a52c110b01f4bad0b52080a69550 (patch) | |
tree | 25323e678f26f09143b7c3c486f5f81ac6379e7f /src/map/script.c | |
parent | 95f13f3420822111f928ba6079fbc2061bd38c5f (diff) | |
download | hercules-209d15e07d52a52c110b01f4bad0b52080a69550.tar.gz hercules-209d15e07d52a52c110b01f4bad0b52080a69550.tar.bz2 hercules-209d15e07d52a52c110b01f4bad0b52080a69550.tar.xz hercules-209d15e07d52a52c110b01f4bad0b52080a69550.zip |
Fixed ERS Cache sharing
Enforcing cache to match the option condition in order for it to be shared. Special Thanks to Haruna!
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index 76cb2ef89..a55b43791 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4302,8 +4302,8 @@ void do_init_script(bool minimal) { script->userfunc_db = strdb_alloc(DB_OPT_DUP_KEY,0); script->autobonus_db = strdb_alloc(DB_OPT_DUP_KEY,0); - script->st_ers = ers_new(sizeof(struct script_state), "script.c::st_ers", ERS_OPT_CLEAN); - script->stack_ers = ers_new(sizeof(struct script_stack), "script.c::script_stack", ERS_OPT_NONE); + script->st_ers = ers_new(sizeof(struct script_state), "script.c::st_ers", ERS_OPT_CLEAN|ERS_OPT_FLEX_CHUNK); + script->stack_ers = ers_new(sizeof(struct script_stack), "script.c::script_stack", ERS_OPT_NONE|ERS_OPT_FLEX_CHUNK); script->array_ers = ers_new(sizeof(struct script_array), "script.c::array_ers", ERS_OPT_CLEAN|ERS_OPT_CLEAR); ers_chunk_size(script->st_ers, 10); |