diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-03 01:15:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-04 16:29:02 +0300 |
commit | 1246fcc42bc44f624a1c8bd855fd1dd82d51f228 (patch) | |
tree | 5ad659704c2f57711dc77e184e4110b527e12e79 /src/emap/npc.c | |
parent | 9b47893aa8736d173ca85a30c5336d9418b3044f (diff) | |
download | plugin-1246fcc42bc44f624a1c8bd855fd1dd82d51f228.tar.gz plugin-1246fcc42bc44f624a1c8bd855fd1dd82d51f228.tar.bz2 plugin-1246fcc42bc44f624a1c8bd855fd1dd82d51f228.tar.xz plugin-1246fcc42bc44f624a1c8bd855fd1dd82d51f228.zip |
Reduce memory usage in vectors.evolrelease2016-08-07
Diffstat (limited to 'src/emap/npc.c')
-rw-r--r-- | src/emap/npc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/npc.c b/src/emap/npc.c index 59f41cf..e4c2427 100644 --- a/src/emap/npc.c +++ b/src/emap/npc.c @@ -181,6 +181,7 @@ bool enpc_duplicate_script_sub_pre(struct npc_data **ndPtr, CREATE(code, struct script_code, 1); const int sz = VECTOR_LENGTH(snd->u.scr.script->script_buf); + VECTOR_INIT(code->script_buf); VECTOR_ENSURE(code->script_buf, sz , 1); VECTOR_PUSHARRAY(code->script_buf, VECTOR_DATA(snd->u.scr.script->script_buf), sz); |