summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 448bd18aa..9c77460d4 100644
--- a/src/map/npc.c
+++ b/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]
ShowInfo("parse_function: Overwriting user function [%s] (%s:%d)\n", p, file, *lines);
script_free_code(oldscript);
- user_db->remove(user_db,p);
+ user_db->remove(user_db,str2key(p));
strdb_put(user_db, p, script);
} else
strdb_put(user_db, p, script);