version 1.36 | | version 1.37 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.36 2003/06/26 11:27:43 gros Exp $"; | | * "$Id: treasure.c,v 1.37 2003/06/30 20:51:37 gros Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
evtp->next = evtn; | | evtp->next = evtn; |
} | | } |
} | | } |
| | else if (evt2 == NULL) |
| | { |
| | if (op->events == NULL) |
| | { |
| | evt2 = (event *)malloc(sizeof(event)); |
| | op->events = evt2; |
| | } |
| | else |
| | { |
| | evtp = op->events; |
| | while (evtp->next != NULL) |
| | evtp = evtp->next; |
| | evtp->next = (event *)malloc(sizeof(event)); |
| | } |
| | } |
| | |
evt2->hook = add_refcount(evt->hook); | | evt2->hook = add_refcount(evt->hook); |
evt2->plugin = add_refcount(evt->plugin); | | evt2->plugin = add_refcount(evt->plugin); |