summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPepper0ni <93387759+Pepper0ni@users.noreply.github.com>2025-08-06 04:43:19 +0100
committerGitHub <noreply@github.com>2025-08-05 20:43:19 -0700
commitb87f1432fd245ce3409fbc769f17e8e94d69db24 (patch)
tree39d034b987ddd7d3a968881357b6780429f74cd0
parentbe77a9be713b669a715e1006e78484e469258e4c (diff)
properly clear location subcatagories when generating a seed (#5707)
-rw-r--r--soh/soh/Enhancements/randomizer/context.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/soh/soh/Enhancements/randomizer/context.cpp b/soh/soh/Enhancements/randomizer/context.cpp
index a0f7f223b..243f22ea6 100644
--- a/soh/soh/Enhancements/randomizer/context.cpp
+++ b/soh/soh/Enhancements/randomizer/context.cpp
@@ -161,6 +161,10 @@ bool Context::IsQuestOfLocationActive(RandomizerCheck rc) {
void Context::GenerateLocationPool() {
allLocations.clear();
+ overworldLocations.clear();
+ for (auto dungeon : ctx->GetDungeons()->GetDungeonList()) {
+ dungeon->locations.clear();
+ }
for (Location& location : StaticData::GetLocationTable()) {
// skip RCs that shouldn't be in the pool for any reason (i.e. settings, unsupported check type, etc.)
// TODO: Exclude checks for some of the older shuffles from the pool too i.e. Frog Songs, Scrubs, etc.)