From a4ab0cb7688544067b126776526adf285adda67b Mon Sep 17 00:00:00 2001 From: Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:34:43 +0100 Subject: [PATCH] Fix seed generation issues caused by Location Table changes --- soh/soh/Enhancements/randomizer/context.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/context.cpp b/soh/soh/Enhancements/randomizer/context.cpp index 09a6b40d504..a81295bea45 100644 --- a/soh/soh/Enhancements/randomizer/context.cpp +++ b/soh/soh/Enhancements/randomizer/context.cpp @@ -188,20 +188,8 @@ void Context::ItemReset() { } void Context::LocationReset() { - for (const RandomizerCheck il : allLocations) { - GetItemLocation(il)->RemoveFromPool(); - } - - for (const RandomizerCheck il : StaticData::dungeonRewardLocations) { - GetItemLocation(il)->RemoveFromPool(); - } - - for (const RandomizerCheck il : StaticData::GetGossipStoneLocations()) { - GetItemLocation(il)->RemoveFromPool(); - } - - for (const RandomizerCheck il : StaticData::GetStaticHintLocations()) { - GetItemLocation(il)->RemoveFromPool(); + for (auto& il : itemLocationTable) { + il.RemoveFromPool(); } }