mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
clang
This commit is contained in:
parent
329d654ec0
commit
742d7dfdcc
1 changed files with 4 additions and 3 deletions
|
@ -1121,9 +1121,10 @@ void SaveManager::LoadFile(int fileNum) {
|
||||||
switch (saveBlock["version"].get<int>()) {
|
switch (saveBlock["version"].get<int>()) {
|
||||||
case 1:
|
case 1:
|
||||||
for (auto& block : saveBlock["sections"].items()) {
|
for (auto& block : saveBlock["sections"].items()) {
|
||||||
bool oldVanilla = block.value()["data"].empty() || block.value()["data"].contains("aat0") ||
|
bool oldVanilla =
|
||||||
block.value()["data"]["entrances"].empty() ||
|
block.value()["data"].empty() || block.value()["data"].contains("aat0") ||
|
||||||
SohUtils::IsStringEmpty(saveBlock["sections"]["sohStats"]["data"]["buildVersion"]);
|
block.value()["data"]["entrances"].empty() ||
|
||||||
|
SohUtils::IsStringEmpty(saveBlock["sections"]["sohStats"]["data"]["buildVersion"]);
|
||||||
std::string sectionName = block.key();
|
std::string sectionName = block.key();
|
||||||
if (sectionName == "randomizer") {
|
if (sectionName == "randomizer") {
|
||||||
bool hasStats = saveBlock["sections"].contains("sohStats");
|
bool hasStats = saveBlock["sections"].contains("sohStats");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue