diff --git a/src/detect.c b/src/detect.c index 13676f48a..3a25d45fb 100644 --- a/src/detect.c +++ b/src/detect.c @@ -869,7 +869,7 @@ int src_cursed; obj.ox = x; obj.oy = y; } - obj.otyp = !Hallucination ? GOLD_PIECE : random_object(rn2_on_display_rng); + obj.otyp = !Hallucination ? GOLD_PIECE : random_object(rn2); obj.quan = (long) ((obj.otyp == GOLD_PIECE) ? rnd(10) : objects[obj.otyp].oc_merge ? rnd(2) : 1); obj.corpsenm = random_monster(rn2); /* if otyp == CORPSE */