summaryrefslogtreecommitdiff
path: root/src/map/npc.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/npc.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/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 0309d6556..66635543a 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2767,9 +2767,9 @@ static const char* npc_parse_function(char* w1, char* w2, char* w3, char* w4, co
func_db = script_get_userfunc_db();
if (func_db->put(func_db, db_str2key(w3), db_ptr2data(script), &old_data))
{
- struct script_code *oldscript = db_data2ptr(&old_data);
+ struct script_code *oldscript = (struct script_code*)db_data2ptr(&old_data);
ShowInfo("npc_parse_function: Overwriting user function [%s] (%s:%d)\n", w3, filepath, strline(buffer,start-buffer));
- script_free_vars(&oldscript->script_vars);
+ script_free_vars(oldscript->script_vars);
aFree(oldscript->script_buf);
aFree(oldscript);
}