summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-22 12:15:49 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-22 12:15:49 +0000
commitde7175c5bc24b6e8f3b87540ae93f40a75df2df2 (patch)
tree4517d2916188504401ad86868e641edb35b40617 /src/map/map.h
parentd0565d61b91c9784717e756c72b871099175408b (diff)
downloadhercules-de7175c5bc24b6e8f3b87540ae93f40a75df2df2.tar.gz
hercules-de7175c5bc24b6e8f3b87540ae93f40a75df2df2.tar.bz2
hercules-de7175c5bc24b6e8f3b87540ae93f40a75df2df2.tar.xz
hercules-de7175c5bc24b6e8f3b87540ae93f40a75df2df2.zip
* WARNING: New scripting system contains memory leak
TODO: Free all scripts using script_free_code() instead of old methods. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6690 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 79474cc63..19b039b06 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -538,7 +538,7 @@ struct map_session_data {
int npc_menu;
int npc_amount;
struct script_stack *stack;
- unsigned char *npc_script,*npc_scriptroot;
+ struct script_code *npc_script,*npc_scriptroot;
int npc_scriptstate;
char npc_str[256];
int npc_timer_id; //For player attached npc timers. [Skotlex]
@@ -805,7 +805,7 @@ struct npc_data {
union {
struct {
- unsigned char *script;
+ struct script_code *script;
short xs,ys;
int guild_id;
int timer,timerid,timeramount,rid;