mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -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>()) {
|
||||
case 1:
|
||||
for (auto& block : saveBlock["sections"].items()) {
|
||||
bool oldVanilla = block.value()["data"].empty() || block.value()["data"].contains("aat0") ||
|
||||
block.value()["data"]["entrances"].empty() ||
|
||||
SohUtils::IsStringEmpty(saveBlock["sections"]["sohStats"]["data"]["buildVersion"]);
|
||||
bool oldVanilla =
|
||||
block.value()["data"].empty() || block.value()["data"].contains("aat0") ||
|
||||
block.value()["data"]["entrances"].empty() ||
|
||||
SohUtils::IsStringEmpty(saveBlock["sections"]["sohStats"]["data"]["buildVersion"]);
|
||||
std::string sectionName = block.key();
|
||||
if (sectionName == "randomizer") {
|
||||
bool hasStats = saveBlock["sections"].contains("sohStats");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue