mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-05-29 16:54:35 -04:00
Fix for a single zeroed merchantPrice entry
This commit is contained in:
@@ -94,7 +94,13 @@ void SaveManager::LoadRandomizerVersion1() {
|
||||
|
||||
std::shared_ptr<Randomizer> randomizer = OTRGlobals::Instance->gRandomizer;
|
||||
|
||||
SaveManager::Instance->LoadArray("merchantPrices", NUM_SCRUBS, [&](size_t i) {
|
||||
size_t merchantPricesSize = 0;
|
||||
if (randomizer->GetRandoSettingValue(RSK_SHUFFLE_SCRUBS) > 0) {
|
||||
merchantPricesSize += NUM_SCRUBS;
|
||||
}
|
||||
// TODO: Add shop item count when shopsanity is enabled
|
||||
|
||||
SaveManager::Instance->LoadArray("merchantPrices", merchantPricesSize, [&](size_t i) {
|
||||
SaveManager::Instance->LoadStruct("", [&]() {
|
||||
RandomizerCheck rc;
|
||||
SaveManager::Instance->LoadData("check", rc);
|
||||
|
||||
Reference in New Issue
Block a user