From e36dcefe54e3877e915c0884f89b5347c43e87ad Mon Sep 17 00:00:00 2001 From: Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:36:58 +0100 Subject: [PATCH] Fix seed generation issues caused by Location Table changes (#4378) --- 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 09a6b40d5..a81295bea 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(); } }