summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-31 15:53:45 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-31 15:53:45 +0000
commit6cf521b4ce07b75cb628ddc831faa792efe0a7ab (patch)
treeb64bc828392b896624a62a3a8af9ca321aba3b0b /src
parent47981612dad9c7d94466e357de003f0ba597efcb (diff)
downloadhercules-6cf521b4ce07b75cb628ddc831faa792efe0a7ab.tar.gz
hercules-6cf521b4ce07b75cb628ddc831faa792efe0a7ab.tar.bz2
hercules-6cf521b4ce07b75cb628ddc831faa792efe0a7ab.tar.xz
hercules-6cf521b4ce07b75cb628ddc831faa792efe0a7ab.zip
[Fixed]:
- Incorrect SQL syntax in login.c (missing collumn) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6892 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/login_sql/login.c2
-rw-r--r--src/map/npc.c1
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");