Browse Source

modified src/map/npc.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9085 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance 18 years ago
parent
commit
503bc35109
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/npc.c

+ 1 - 1
src/map/npc.c

@@ -2161,7 +2161,7 @@ static int npc_parse_function (char *w1, char *w2, char *w3, char *w4, char *fir
 		// Experimental function overwriting - [Lance]
 		// Experimental function overwriting - [Lance]
 		ShowInfo("parse_function: Overwriting user function [%s] (%s:%d)\n", p, file, *lines);
 		ShowInfo("parse_function: Overwriting user function [%s] (%s:%d)\n", p, file, *lines);
 		script_free_code(oldscript);
 		script_free_code(oldscript);
-		user_db->remove(user_db,p);
+		user_db->remove(user_db,str2key(p));
 		strdb_put(user_db, p, script);
 		strdb_put(user_db, p, script);
 	} else
 	} else
 		strdb_put(user_db, p, script);
 		strdb_put(user_db, p, script);