mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-14 05:25:09 -05:00
Fix issue when merchantPrices is empty
This commit is contained in:
parent
885d6dc6c2
commit
0ab4f21382
@ -155,7 +155,7 @@ void SaveManager::SaveRandomizer() {
|
||||
merchantPrices.push_back(std::make_pair(check, price));
|
||||
}
|
||||
|
||||
SaveManager::Instance->SaveArray("merchantPrices", NUM_SCRUBS, [&](size_t i) {
|
||||
SaveManager::Instance->SaveArray("merchantPrices", merchantPrices.size(), [&](size_t i) {
|
||||
SaveManager::Instance->SaveStruct("", [&]() {
|
||||
SaveManager::Instance->SaveData("check", merchantPrices[i].first);
|
||||
SaveManager::Instance->SaveData("price", merchantPrices[i].second);
|
||||
|
Loading…
Reference in New Issue
Block a user