diff options
| author | Chris <f1ana@users.noreply.github.com> | 2026-06-27 16:08:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-27 20:08:21 +0000 |
| commit | 2f262f492edb14f39e0ce1e80179e50a5cc3abc6 (patch) | |
| tree | d28eab95a92396bc047d8dca2ba049031a13b232 | |
| parent | 2ba368e7e7a76b247791c5b9d4e7f2dcff262b1f (diff) | |
[Bugfix] Junk stone hints not generated (#6824)
| -rw-r--r-- | soh/soh/Enhancements/randomizer/3drando/hints.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/soh/Enhancements/randomizer/3drando/hints.cpp b/soh/soh/Enhancements/randomizer/3drando/hints.cpp index 08ec7eeca..904ab1879 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<HintDistributionSetting>& distTable, size_t totalStones) { auto ctx = Rando::Context::GetInstance(); - const uint8_t junkIdx = static_cast<uint8_t>(distTable.size()); + const uint8_t junkIdx = static_cast<uint8_t>(distTable.size() - 1); // Apply fixed hints upfront (they don't participate in weighted selection) for (size_t i = 0; i < distTable.size(); i++) { |
