diff --git a/soh/soh/SaveManager.cpp b/soh/soh/SaveManager.cpp index f91696191..3f35a1802 100644 --- a/soh/soh/SaveManager.cpp +++ b/soh/soh/SaveManager.cpp @@ -468,6 +468,12 @@ void SaveManager::LoadRandomizerVersion3() { size_t trialId; SaveManager::Instance->LoadData("", trialId); randoContext->GetTrial(trialId)->SetAsRequired(); + }); + + SaveManager::Instance->LoadArray("trickOptions", RT_MAX, [&](size_t i) { + uint8_t value = 0; + SaveManager::Instance->LoadData("", value); + randoContext->GetTrickOption(RandomizerTrick(i)).Set(value); }); } @@ -603,6 +609,10 @@ void SaveManager::SaveRandomizer(SaveContext* saveContext, int sectionID, bool f SaveManager::Instance->SaveData("", i); } }); + + SaveManager::Instance->SaveArray("trickOptions", RT_MAX, [&](size_t i) { + SaveManager::Instance->SaveData("", randoContext->GetTrickOption(RandomizerTrick(i)).Get()); + }); } // Init() here is an extension of InitSram, and thus not truly an initializer for SaveManager itself. don't put any class initialization stuff here