Difference for common/treasure.c from version 1.48 to 1.49


version 1.48 version 1.49
Line 1
 
Line 1
   
 /*  /*
  * static char *rcs_treasure_c =   * static char *rcs_treasure_c =
  *   "$Id: treasure.c,v 1.48 2004/04/08 06:48:51 mwedel Exp $";   *   "$Id: treasure.c,v 1.49 2004/05/09 08:03:57 mwedel Exp $";
  */   */
   
 /*  /*
Line 1220
 
Line 1220
  else if (sscanf(cp, "difficulty %d", &value))   else if (sscanf(cp, "difficulty %d", &value))
      art->difficulty = (uint8) value;       art->difficulty = (uint8) value;
  else if (!strncmp(cp, "Object",6)) {   else if (!strncmp(cp, "Object",6)) {
      art->item = (object *) malloc(sizeof(object));       art->item = (object *) calloc(1, sizeof(object));
      reset_object(art->item);       reset_object(art->item);
      if (!load_object(fp, art->item,LO_LINEMODE,0))       if (!load_object(fp, art->item,LO_LINEMODE,0))
  LOG(llevError,"Init_Artifacts: Could not load object.\n");   LOG(llevError,"Init_Artifacts: Could not load object.\n");


Legend:
line(s) removed in v.1.48 
line(s) changed
 line(s) added in v.1.49

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:18