From 4f2de079cdabfa86b609a5ad15df3a4c1c58437b Mon Sep 17 00:00:00 2001 From: epoque11 Date: Sat, 28 Apr 2012 21:50:55 +0000 Subject: - 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 --- src/map/npc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/npc.c') 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); } -- cgit v1.2.3-60-g2f50