--- cf.schmorp.de/server/common/treasure.C 2006/08/13 17:16:01 1.1 +++ cf.schmorp.de/server/common/treasure.C 2006/08/27 16:15:11 1.2 @@ -1,7 +1,7 @@ /* * static char *rcs_treasure_c = - * "$Id: treasure.C,v 1.1 2006/08/13 17:16:01 elmex Exp $"; + * "$Id: treasure.C,v 1.2 2006/08/27 16:15:11 root Exp $"; */ /* @@ -1279,6 +1279,8 @@ int value, comp; artifactlist *al; + object_thawer thawer; + if (has_been_inited) return; else has_been_inited = 1; @@ -1323,7 +1325,7 @@ else if (!strncmp(cp, "Object",6)) { art->item = (object *) calloc(1, sizeof(object)); reset_object(art->item); - if (!load_object(fp, art->item,LO_LINEMODE,0)) + if (!load_object(fp, thawer, art->item,LO_LINEMODE,0)) LOG(llevError,"Init_Artifacts: Could not load object.\n"); art->item->name = add_string((strchr(cp, ' ')+1)); al=find_artifactlist(art->item->type);