From d02114a9d80f872f6d8230239b946a61b82dca20 Mon Sep 17 00:00:00 2001 From: Garrett Cox Date: Tue, 6 Sep 2022 13:36:56 -0500 Subject: [PATCH] Handle shop items in SaveManager --- soh/soh/SaveManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soh/soh/SaveManager.cpp b/soh/soh/SaveManager.cpp index 1fef30214..9e5f11149 100644 --- a/soh/soh/SaveManager.cpp +++ b/soh/soh/SaveManager.cpp @@ -98,7 +98,9 @@ void SaveManager::LoadRandomizerVersion1() { if (randomizer->GetRandoSettingValue(RSK_SHUFFLE_SCRUBS) > 0) { merchantPricesSize += NUM_SCRUBS; } - // TODO: Add shop item count when shopsanity is enabled + if (randomizer->GetRandoSettingValue(RSK_SHOPSANITY) > 0) { + merchantPricesSize += NUM_SHOP_ITEMS; + } SaveManager::Instance->LoadArray("merchantPrices", merchantPricesSize, [&](size_t i) { SaveManager::Instance->LoadStruct("", [&]() {