mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Savegames loader fixed to properly know save version.
This commit is contained in:
parent
55271e621b
commit
8eafb9f951
@ -501,6 +501,9 @@ CLoadIntegrityValidator::CLoadIntegrityValidator( const std::string &primaryFile
|
||||
registerTypes(*this);
|
||||
primaryFile = make_unique<CLoadFile>(primaryFileName, minimalVersion);
|
||||
controlFile = make_unique<CLoadFile>(controlFileName, minimalVersion);
|
||||
|
||||
assert(primaryFile->fileVersion == controlFile->fileVersion);
|
||||
fileVersion = primaryFile->fileVersion;
|
||||
}
|
||||
|
||||
int CLoadIntegrityValidator::read( const void * data, unsigned size )
|
||||
|
Loading…
Reference in New Issue
Block a user