--- deliantra/server/common/treasure.C 2007/04/16 11:09:30 1.43 +++ deliantra/server/common/treasure.C 2007/04/16 15:41:26 1.45 @@ -78,8 +78,7 @@ } /* - * Searches for the given treasurelist in the globally linked list - * of treasurelists which has been built by load_treasures(). + * Searches for the given treasurelist */ treasurelist * treasurelist::find (const char *name) @@ -87,7 +86,7 @@ if (!name) return 0; - AUTODECL (i, tl_map.find (name)); + auto (i, tl_map.find (name)); if (i == tl_map.end ()) return 0; @@ -127,6 +126,8 @@ free_treasurestruct (tl->items); tl->items = 0; } + + tl->total_chance = 0; } /*