mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
Add check for blank buildVersion in sohStats block for determining old saves.
This commit is contained in:
parent
f8c5df85ad
commit
329d654ec0
1 changed files with 2 additions and 1 deletions
|
@ -1122,7 +1122,8 @@ void SaveManager::LoadFile(int fileNum) {
|
|||
case 1:
|
||||
for (auto& block : saveBlock["sections"].items()) {
|
||||
bool oldVanilla = block.value()["data"].empty() || block.value()["data"].contains("aat0") ||
|
||||
block.value()["data"]["entrances"].empty();
|
||||
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