FIXED!
Removed Freya's code: "added null pointer check from freya" it caused NPC bugs: OnTime, OnInit etc sorry 8) git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@596 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
90251c6011
commit
a7390d023f
@ -1,5 +1,7 @@
|
|||||||
Date Added
|
Date Added
|
||||||
12/17
|
12/17
|
||||||
|
* db.c: Fixed probs with OnInit, OnTime, and etc NPC probs
|
||||||
|
Just reverted it back. [Lupus]
|
||||||
* Fixed warning message in db.c line 445 [MC Cameri]
|
* Fixed warning message in db.c line 445 [MC Cameri]
|
||||||
* Added #effect, removed @chareffect [MC Cameri]
|
* Added #effect, removed @chareffect [MC Cameri]
|
||||||
* Reverted a change in map.c causing problems, sorry >.< [celest]
|
* Reverted a change in map.c causing problems, sorry >.< [celest]
|
||||||
|
@ -441,11 +441,12 @@ void db_foreach(struct dbt *table,int (*func)(void*,void*,va_list),...)
|
|||||||
continue;
|
continue;
|
||||||
sp=0;
|
sp=0;
|
||||||
while(1){
|
while(1){
|
||||||
if (!p->data) {
|
//reverted it back. sorry that brought thios bug from Freya [Lupus]
|
||||||
printf("Warning: no data for key %d in db_foreach (db.c) !\n",(int)p->key);
|
//if (!p->data) {
|
||||||
} else {
|
// printf("Warning: no data for key %d in db_foreach (db.c) !\n",(int)p->key);
|
||||||
func(p->key, p->data, ap);
|
//} else {
|
||||||
}
|
func(p->key, p->data, ap);
|
||||||
|
//}
|
||||||
if((pn=p->left)!=NULL){
|
if((pn=p->left)!=NULL){
|
||||||
if(p->right){
|
if(p->right){
|
||||||
stack[sp++]=p->right;
|
stack[sp++]=p->right;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user