From 2f262f492edb14f39e0ce1e80179e50a5cc3abc6 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 27 Jun 2026 16:08:21 -0400 Subject: [PATCH] [Bugfix] Junk stone hints not generated (#6824) --- soh/soh/Enhancements/randomizer/3drando/hints.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/randomizer/3drando/hints.cpp b/soh/soh/Enhancements/randomizer/3drando/hints.cpp index 08ec7eeca0..904ab18793 100644 --- a/soh/soh/Enhancements/randomizer/3drando/hints.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/hints.cpp @@ -502,7 +502,7 @@ static int32_t getRandomWeight(uint32_t totalWeight) { static void DistributeAndPlaceHints(std::vector& distTable, size_t totalStones) { auto ctx = Rando::Context::GetInstance(); - const uint8_t junkIdx = static_cast(distTable.size()); + const uint8_t junkIdx = static_cast(distTable.size() - 1); // Apply fixed hints upfront (they don't participate in weighted selection) for (size_t i = 0; i < distTable.size(); i++) {