diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-30 03:27:46 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-30 03:27:46 +0000 |
commit | b0bf26b076dcc5a6f1d6ecddde89948366e96a1a (patch) | |
tree | b942f6d0280ccf928411f84f2426c68b08082329 /src/map/unit.c | |
parent | 544252787ad1d7b55bb1d8299e8779ad7d57fe75 (diff) | |
download | hercules-b0bf26b076dcc5a6f1d6ecddde89948366e96a1a.tar.gz hercules-b0bf26b076dcc5a6f1d6ecddde89948366e96a1a.tar.bz2 hercules-b0bf26b076dcc5a6f1d6ecddde89948366e96a1a.tar.xz hercules-b0bf26b076dcc5a6f1d6ecddde89948366e96a1a.zip |
* Changes to the script engine:
- script ends when run_func can't find the buildin command. (script engine error)
- run_script_main doesn't change RERUNLINE to RUN automatically, the buildin command that set it is responsible for that now. The buildin command can use this to detect a rerun.
- created functions to alloc/free a script_state.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13426 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 812c70b47..6695abf6b 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1961,6 +1961,7 @@ int unit_free(struct block_list *bl, int clrtype) sd->regstr_num = 0; } //Tell the script to end, not delete it, it will free itself when necessary [Kevin] + // TODO review this assumption, possible source of memory leaks [FlavioJS] if( sd->st ) { sd->st->rid = 0; |