diff --git a/soh/soh/Enhancements/randomizer/3drando/playthrough.cpp b/soh/soh/Enhancements/randomizer/3drando/playthrough.cpp index 7aef15aa5..2ff82efe0 100644 --- a/soh/soh/Enhancements/randomizer/3drando/playthrough.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/playthrough.cpp @@ -23,6 +23,7 @@ int Playthrough_Init(uint32_t seed, std::set excludedLocations, CustomMessages::ClearMessages(); ctx->ItemReset(); ctx->HintReset(); + ctx->SilverRupeeReset(); ctx->GetLogic()->Reset(); Areas::AccessReset(); diff --git a/soh/soh/Enhancements/randomizer/context.cpp b/soh/soh/Enhancements/randomizer/context.cpp index 36bc1bc5c..7c13c18a1 100644 --- a/soh/soh/Enhancements/randomizer/context.cpp +++ b/soh/soh/Enhancements/randomizer/context.cpp @@ -279,6 +279,11 @@ void Context::HintReset() { } } +void Context::SilverRupeeReset() { + mSilverRupees.reset(); + mSilverRupees = std::make_shared(); +} + void Context::CreateItemOverrides() { SPDLOG_DEBUG("NOW CREATING OVERRIDES\n\n"); for (RandomizerCheck locKey : allLocations) { diff --git a/soh/soh/Enhancements/randomizer/context.h b/soh/soh/Enhancements/randomizer/context.h index bbf10aab0..a2f2bae59 100644 --- a/soh/soh/Enhancements/randomizer/context.h +++ b/soh/soh/Enhancements/randomizer/context.h @@ -58,6 +58,7 @@ class Context { void ClearItemLocations(); void ItemReset(); void HintReset(); + void SilverRupeeReset(); void CreateItemOverrides(); bool IsSeedGenerated() const; void SetSeedGenerated(bool seedGenerated = true);