From 6f96f2dea64de97bd5a16a146c8ce943b01563de Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 9 Mar 2007 00:10:06 +0000 Subject: - Made conv_str return const char* since the script engine screws up if you mess with the position of the terminator on the received string. - Because of this, many functions that handled the return of conv_str need to be changed, I haven't finished doing the conversion process because I must go already, if someone else can continue, please do so (I will resume work on this in ~5 hours git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9978 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/script.h') diff --git a/src/map/script.h b/src/map/script.h index bad0374dd..d6542700d 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -68,7 +68,7 @@ void run_script(struct script_code*,int,int,int); int set_var(struct map_session_data *sd, char *name, void *val); int conv_num(struct script_state *st,struct script_data *data); -char* conv_str(struct script_state *st,struct script_data *data); +const char* conv_str(struct script_state *st,struct script_data *data); void setd_sub(struct script_state *st, struct map_session_data *sd, char *varname, int elem, void *value, struct linkdb_node **ref); int run_script_timer(int tid, unsigned int tick, int id, int data); void run_script_main(struct script_state *st); -- cgit v1.2.3-70-g09d2