diff --git a/src/loadsave.cpp b/src/loadsave.cpp index c87fff6d510..5b1db88d10f 100644 --- a/src/loadsave.cpp +++ b/src/loadsave.cpp @@ -392,7 +392,7 @@ bool addLoadSave(LOADSAVE_MODE savemode, const char *title) ASSERT(latestTagResult.has_value(), "No extractable latest tag?? - Please try re-downloading the latest official source bundle"); const TagVer buildTagVer = latestTagResult.value_or(TagVer()); try - { + { WZ_PHYSFS_enumerateFolders(NewSaveGamePath, [NewSaveGamePath, &buildTagVer, &saveGameNamesAndTimes](const char* dirName){ if (strcmp(dirName, "auto") == 0) { @@ -1155,7 +1155,7 @@ bool autoSave(bool force) // no old .gam found: check for new saves freeAutoSaveSlot(bMultiPlayer ? SAVEGAME_LOC_SKI_AUTO : SAVEGAME_LOC_CAM_AUTO); } - + time_t now = time(nullptr); struct tm timeinfo = getLocalTime(now); char savedate[PATH_MAX]; diff --git a/src/multiopt.cpp b/src/multiopt.cpp index 88ea5dbedf0..960471921f3 100644 --- a/src/multiopt.cpp +++ b/src/multiopt.cpp @@ -301,7 +301,7 @@ bool recvOptions(NETQUEUE queue) { // Check if those vectors are different bool structurelimitsUpdated = (oldStructureLimits.size() != ingame.structureLimits.size()) || (oldStructureLimits != ingame.structureLimits); - + // Notify if structure limits were changed if (structurelimitsUpdated) {