diff options
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index cb104c11b..edeb6d8d4 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2345,9 +2345,8 @@ static int npc_parse_function (char *w1, char *w2, char *w3, char *w4, char *fir script_free_vars( &oldscript->script_vars ); aFree( oldscript->script_buf ); user_db->remove(user_db,str2key(p)); - strdb_put(user_db, p, script); - } else - strdb_put(user_db, p, script); + } + strdb_put(user_db, p, script); // もう使わないのでバッファ解放 aFree(srcbuf); |