--- deliantra/server/random_maps/treasure.C 2007/01/27 02:19:37 1.24 +++ deliantra/server/random_maps/treasure.C 2007/02/17 23:32:11 1.25 @@ -241,7 +241,7 @@ if (tlist != NULL) for (ti = 0; ti < n_treasures; ti++) { /* use the treasure list */ - object *new_treasure = pick_random_object (style_map); + object *new_treasure = style_map->pick_random_object (); insert_ob_in_ob (arch_to_object (new_treasure->arch), the_chest); } @@ -266,7 +266,7 @@ if (trap_map) { - the_trap = pick_random_object (trap_map); + the_trap = trap_map->pick_random_object (); the_trap->stats.Cha = 10 + RP->difficulty; the_trap->level = bc_random ((3 * RP->difficulty) / 2); if (the_trap)