diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-17 16:37:23 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-17 16:37:23 +0000 |
commit | ceaccb3f3fe96f7a7e7fbce3fe1652d4b980cffc (patch) | |
tree | eb5cb66c3cdd0db0c0e185dfe84fbb3001a6d75a /src/common/db.c | |
parent | c2ab3377eafb9f941344a388f038ecec45f87f9c (diff) | |
download | hercules-ceaccb3f3fe96f7a7e7fbce3fe1652d4b980cffc.tar.gz hercules-ceaccb3f3fe96f7a7e7fbce3fe1652d4b980cffc.tar.bz2 hercules-ceaccb3f3fe96f7a7e7fbce3fe1652d4b980cffc.tar.xz hercules-ceaccb3f3fe96f7a7e7fbce3fe1652d4b980cffc.zip |
FIXED!
Removed Freya's code: "added null pointer check from freya"
it caused NPC bugs: OnTime, OnInit
etc
sorry 8)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@596 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/db.c')
-rw-r--r-- | src/common/db.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/common/db.c b/src/common/db.c index 95a9b3578..8996dda80 100644 --- a/src/common/db.c +++ b/src/common/db.c @@ -441,11 +441,12 @@ void db_foreach(struct dbt *table,int (*func)(void*,void*,va_list),...) continue; sp=0; while(1){ - if (!p->data) { - printf("Warning: no data for key %d in db_foreach (db.c) !\n",(int)p->key); - } else { - func(p->key, p->data, ap); - } + //reverted it back. sorry that brought thios bug from Freya [Lupus] + //if (!p->data) { + // printf("Warning: no data for key %d in db_foreach (db.c) !\n",(int)p->key); + //} else { + func(p->key, p->data, ap); + //} if((pn=p->left)!=NULL){ if(p->right){ stack[sp++]=p->right; |