diff options
-rw-r--r-- | src/login_sql/login.c | 2 | ||||
-rw-r--r-- | src/map/npc.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index b72f13e9e..699655bff 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -397,7 +397,7 @@ int mmo_auth_sqldb_init(void) { if (log_login)
{
- sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '0', '100','login server started')", loginlog_db);
+ sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '0', 'lserver','100','login server started')", loginlog_db);
//query
if (mysql_query(&mysql_handle, tmpsql)) {
diff --git a/src/map/npc.c b/src/map/npc.c index 1daef3534..8f9e95431 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2952,6 +2952,7 @@ int do_init_npc(void) fake_nd->speed = 200;
fake_nd->u.scr.script = NULL;
fake_nd->u.scr.src_id = 0;
+ fake_nd->chatdb = NULL;
for (i = 0; i < MAX_EVENTTIMER; i++)
fake_nd->eventtimer[i] = -1;
strcpy(fake_nd->name,"FAKE_NPC");
|