--- deliantra/server/common/treasure.c 2006/02/03 07:11:41 1.1 +++ deliantra/server/common/treasure.c 2006/07/11 16:50:16 1.2 @@ -157,7 +157,7 @@ /* recursived checks the linked list. Treasurelist is passed only * so that the treasure name can be printed out */ -static void check_treasurelist(treasure *t, treasurelist *tl) +static void check_treasurelist(const treasure *t, const treasurelist *tl) { if (t->item==NULL && t->name==NULL) LOG(llevError,"Treasurelist %s has element with no name or archetype\n", tl->name); @@ -222,7 +222,7 @@ } } } else - LOG(llevError,"Treasure-list didn't understand: %s, line %d\n",buf, line); + LOG(llevError,"Treasure-list %s didn't understand: %s, line %d\n", filename, buf, line); } close_and_delete(fp, comp); @@ -485,7 +485,7 @@ * This code presumes that op has had its spell object created (in op->inv) */ -int level_for_item(object *op, int difficulty, int retmult) +int level_for_item(const object *op, int difficulty, int retmult) { int level, mult, olevel;