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++) {