diff options
author | Haru <haru@dotalux.com> | 2016-01-01 03:07:16 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-06-25 17:29:39 +0200 |
commit | 3dcdb2bbc6e9c06ebdec1e5ad2d18e93c1394a86 (patch) | |
tree | e5fc69b8554560ba9463078bdb524f0eef4b5e6a /src/map/npc.c | |
parent | a16cfeda0e57207cc655fb94415ee78b0c8520e6 (diff) | |
download | hercules-3dcdb2bbc6e9c06ebdec1e5ad2d18e93c1394a86.tar.gz hercules-3dcdb2bbc6e9c06ebdec1e5ad2d18e93c1394a86.tar.bz2 hercules-3dcdb2bbc6e9c06ebdec1e5ad2d18e93c1394a86.tar.xz hercules-3dcdb2bbc6e9c06ebdec1e5ad2d18e93c1394a86.zip |
Replaced script_code::script_buf with a VECTOR
- Fixes various signed/unsigned comparisons.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 6b55bf5ae..b49e56d20 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -3759,7 +3759,7 @@ const char *npc_parse_function(const char *w1, const char *w2, const char *w3, c struct script_code *oldscript = (struct script_code*)DB->data2ptr(&old_data); ShowWarning("npc_parse_function: Overwriting user function [%s] in file '%s', line '%d'.\n", w3, filepath, strline(buffer,start-buffer)); script->free_vars(oldscript->local.vars); - aFree(oldscript->script_buf); + VECTOR_CLEAR(oldscript->script_buf); aFree(oldscript); } |