--- deliantra/server/common/treasure.C 2006/09/10 16:00:23 1.16 +++ deliantra/server/common/treasure.C 2006/09/12 18:15:34 1.17 @@ -1,7 +1,7 @@ /* * static char *rcs_treasure_c = - * "$Id: treasure.C,v 1.16 2006/09/10 16:00:23 root Exp $"; + * "$Id: treasure.C,v 1.17 2006/09/12 18:15:34 root Exp $"; */ /* @@ -261,18 +261,14 @@ treasurelist * find_treasurelist (const char *name) { - /* Special cases - randomitems of NULL is to override default. If - * first_treasurelist is null, it means we are on the first pass of - * of loading archetypes, so for now, just return - second pass will - * init these values. - */ - if (!name) + shstr_cmp name_ (name); + + if (!name_) return 0; - if (const char *tmp = shstr::find (name)) - for (treasurelist * tl = first_treasurelist; tl != 0; tl = tl->next) - if (tmp == tl->name) - return tl; + for (treasurelist * tl = first_treasurelist; tl != 0; tl = tl->next) + if (name_ == tl->name) + return tl; if (first_treasurelist) LOG (llevError, "Couldn't find treasurelist %s\n", name);