mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Restore save compatibility with 1.6
This commit is contained in:
@@ -64,7 +64,11 @@ void CMapInfo::saveInit(const ResourcePath & file)
|
||||
mapHeader = std::make_unique<CMapHeader>();
|
||||
scenarioOptionsOfSave = std::make_unique<StartInfo>();
|
||||
lf.load(*mapHeader);
|
||||
lf.load(*scenarioOptionsOfSave);
|
||||
if (lf.hasFeature(ESerializationVersion::NO_RAW_POINTERS_IN_SERIALIZER))
|
||||
lf.load(*scenarioOptionsOfSave);
|
||||
else
|
||||
lf.load(scenarioOptionsOfSave);
|
||||
|
||||
fileURI = file.getName();
|
||||
originalFileURI = file.getOriginalName();
|
||||
fullFileURI = getFullFileURI(file);
|
||||
|
||||
Reference in New Issue
Block a user