summaryrefslogtreecommitdiff
path: root/src/map/instance.c
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-28 21:50:55 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-28 21:50:55 +0000
commit4f2de079cdabfa86b609a5ad15df3a4c1c58437b (patch)
tree0b5137762afd873246a58651ac26060a9bbac546 /src/map/instance.c
parent392f7f863f7de18b26e92e7d9a9702452ef8c1e0 (diff)
downloadhercules-4f2de079cdabfa86b609a5ad15df3a4c1c58437b.tar.gz
hercules-4f2de079cdabfa86b609a5ad15df3a4c1c58437b.tar.bz2
hercules-4f2de079cdabfa86b609a5ad15df3a4c1c58437b.tar.xz
hercules-4f2de079cdabfa86b609a5ad15df3a4c1c58437b.zip
- Updated the script engine to make use of the DBMap* structure for storing variables (for Ind <3)
- Fixed missing new-lines at the end of various files causing warnings git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15997 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/instance.c')
-rw-r--r--src/map/instance.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/map/instance.c b/src/map/instance.c
index c4e151d79..b105a09fa 100644
--- a/src/map/instance.c
+++ b/src/map/instance.c
@@ -343,13 +343,10 @@ void instance_destroy(int instance_id)
}
if( instance[instance_id].ivar )
- linkdb_final( &instance[instance_id].ivar ); // Remove numeric vars
+ db_destroy(instance[instance_id].ivar);
if( instance[instance_id].svar )
- { // Remove string vars
- linkdb_foreach( &instance[instance_id].svar, instance_destroy_freesvar );
- linkdb_final( &instance[instance_id].svar );
- }
+ db_destroy(instance[instance_id].svar);
if( instance[instance_id].progress_timer != INVALID_TIMER )
delete_timer( instance[instance_id].progress_timer, instance_destroy_timer);