summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-02 15:40:25 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-02 15:40:25 +0000
commit2898a10e8ec1df9afaa27ff1d0cb685fcb964720 (patch)
tree8cd3de8a740256d8d5afefa55206138ae4139bae /src/map/script.h
parenteb941f3cf5b97d09faa34116e78648b7eaf6b2fb (diff)
downloadhercules-2898a10e8ec1df9afaa27ff1d0cb685fcb964720.tar.gz
hercules-2898a10e8ec1df9afaa27ff1d0cb685fcb964720.tar.bz2
hercules-2898a10e8ec1df9afaa27ff1d0cb685fcb964720.tar.xz
hercules-2898a10e8ec1df9afaa27ff1d0cb685fcb964720.zip
- Fixed script code data not being free'd if a player quits in the middle of a script.
- Modified run_script so that when there are leaks, it will report the place where run_script was called from as source rather than the inner code of run_script (for debugging purposes) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8057 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 8ce446212..f4bca3569 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -62,7 +62,9 @@ struct script_state {
};
struct script_code* parse_script(unsigned char *,const char*,int);
-void run_script(struct script_code*,int,int,int);
+void run_script_sub(struct script_code *rootscript,int pos,int rid,int oid, char* file, int lineno);
+//void run_script(struct script_code*,int,int,int);
+#define run_script(sc,pos,rid,oid) run_script_sub(sc,pos,rid,oid,__FILE__,__LINE__)
int set_var(struct map_session_data *sd, char *name, void *val);
int conv_num(struct script_state *st,struct script_data *data);