mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 22:55:31 -07:00
Fix for a single zeroed merchantPrice entry
This commit is contained in:
parent
0ab4f21382
commit
c9c648322d
1 changed files with 7 additions and 1 deletions
|
@ -94,7 +94,13 @@ void SaveManager::LoadRandomizerVersion1() {
|
||||||
|
|
||||||
std::shared_ptr<Randomizer> randomizer = OTRGlobals::Instance->gRandomizer;
|
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("", [&]() {
|
SaveManager::Instance->LoadStruct("", [&]() {
|
||||||
RandomizerCheck rc;
|
RandomizerCheck rc;
|
||||||
SaveManager::Instance->LoadData("check", rc);
|
SaveManager::Instance->LoadData("check", rc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue