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/npc.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/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 17ba64984..fd44ded3a 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -163,9 +163,7 @@ int npc_event_dequeue(struct map_session_data* sd) sd->state.using_fake_npc = 0; } if (sd->st) { - sd->st->pos = -1; - script_free_stack(sd->st->stack); - aFree(sd->st); + script_free_state(sd->st); sd->st = NULL; } sd->npc_id = 0; |