summaryrefslogtreecommitdiff
path: root/src/login_sql
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-06 05:19:56 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-06 05:19:56 +0000
commit78a284fab0a3b788cd43caaaa7e057bd4c1084f2 (patch)
tree858b41c973209f395ce8f324e78f0948d9780fdc /src/login_sql
parent9e10a7900d7e42331d71630624ed0725f2794b92 (diff)
downloadhercules-78a284fab0a3b788cd43caaaa7e057bd4c1084f2.tar.gz
hercules-78a284fab0a3b788cd43caaaa7e057bd4c1084f2.tar.bz2
hercules-78a284fab0a3b788cd43caaaa7e057bd4c1084f2.tar.xz
hercules-78a284fab0a3b788cd43caaaa7e057bd4c1084f2.zip
Fixed and tweaked error messages in npc parsing [MouseJstr]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1417 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql')
-rw-r--r--src/login_sql/login.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index 7c67b0174..ff9e4706a 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -166,7 +166,8 @@ int is_user_online(int account_id) {
return 0;
p = (int*)numdb_search(online_db, account_id);
- printf("Acccount %d\n",*p);
+ if (p != NULL)
+ printf("Acccount %d\n",*p);
return (p != NULL);
}