summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-27 05:47:50 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-27 05:47:50 +0000
commit957ecdfbb008733cded26a6dab20c7ac13814f58 (patch)
tree4d639c3e82d23437b54f14ca56bbfcf1bb5d6ffc /src/map/map.c
parent1307b441cd2cdc94bdde1999d48aefb55d91e082 (diff)
downloadhercules-957ecdfbb008733cded26a6dab20c7ac13814f58.tar.gz
hercules-957ecdfbb008733cded26a6dab20c7ac13814f58.tar.bz2
hercules-957ecdfbb008733cded26a6dab20c7ac13814f58.tar.xz
hercules-957ecdfbb008733cded26a6dab20c7ac13814f58.zip
* Corrected description of scope and npc variables in script_commands.txt.
* Made temporary character string variables not have a limited length. (now all temporary string variables don't have limited length) * Made temporary character variables reuse free positions. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11984 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 6e8bf4775..4f8984041 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1671,6 +1671,10 @@ int map_quit(struct map_session_data *sd)
}
if(sd->regstr)
{
+ int i;
+ for( i = 0; i < sd->regstr_num; ++i )
+ if( sd->regstr[i].data )
+ aFree(sd->regstr[i].data);
aFree(sd->regstr);
sd->regstr = NULL;
sd->regstr_num = 0;