1
0
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:
Michał W. Urbańczyk 2014-02-02 14:54:12 +00:00
parent 55271e621b
commit 8eafb9f951

View File

@ -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 )