Skip to content

Commit

Permalink
Fix improper usage of GetFinalGIEntry, passing the RG instead of GI (H…
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjoecox authored Jan 22, 2025
1 parent bc561ef commit 69e3342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion soh/soh/Enhancements/randomizer/hook_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ void RandomizerOnPlayerUpdateForRCQueueHandler() {

RandomizerCheck rc = randomizerQueuedChecks.front();
auto loc = Rando::Context::GetInstance()->GetItemLocation(rc);
GetItemEntry getItemEntry = Rando::Context::GetInstance()->GetFinalGIEntry(rc, true, (GetItemID)Rando::StaticData::GetLocation(rc)->GetVanillaItem());
RandomizerGet vanillaRandomizerGet = Rando::StaticData::GetLocation(rc)->GetVanillaItem();
GetItemID vanillaItem = (GetItemID)Rando::StaticData::RetrieveItem(vanillaRandomizerGet).GetItemID();
GetItemEntry getItemEntry = Rando::Context::GetInstance()->GetFinalGIEntry(rc, true, (GetItemID)vanillaRandomizerGet);

if (loc->HasObtained()) {
SPDLOG_INFO("RC {} already obtained, skipping", static_cast<uint32_t>(rc));
Expand Down

0 comments on commit 69e3342

Please sign in to comment.