version 1.28 | | version 1.29 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.28 2002/07/15 04:57:12 mwedel Exp $"; | | * "$Id: treasure.c,v 1.29 2002/08/26 07:14:10 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
treasurelist *tl = (treasurelist *) malloc(sizeof(treasurelist)); | | treasurelist *tl = (treasurelist *) malloc(sizeof(treasurelist)); |
if(tl==NULL) | | if(tl==NULL) |
fatal(OUT_OF_MEMORY); | | fatal(OUT_OF_MEMORY); |
tl->name=NULL; | | memset(tl, 0, sizeof(treasurelist)); |
tl->next=NULL; | | |
tl->items=NULL; | | |
tl->total_chance=0; | | |
return tl; | | return tl; |
} | | } |
| | |