1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Version bump. Fixed crash on desync saves.

This commit is contained in:
Michał W. Urbańczyk 2013-02-19 12:24:17 +00:00
parent bbdac2f068
commit 9492592a8f
2 changed files with 11 additions and 9 deletions

View File

@ -509,15 +509,17 @@ int CLoadIntegrityValidator::read( const void * data, unsigned size )
std::vector<ui8> controlData(size);
auto ret = primaryFile->read(data, size);
controlFile->read(controlData.data(), size);
if(!foundDesync && std::memcmp(data, controlData.data(), size))
if(!foundDesync)
{
controlFile->read(controlData.data(), size);
if(std::memcmp(data, controlData.data(), size))
{
tlog1 << "Desync found! Position: " << primaryFile->sfile->tellg() << std::endl;
foundDesync = true;
//throw std::runtime_error("Savegame dsynchronized!");
}
}
return ret;
}

View File

@ -14,7 +14,7 @@
namespace GameConstants
{
const std::string VCMI_VERSION = "VCMI 0.91b";
const std::string VCMI_VERSION = "VCMI 0.91c";
/*
* DATA_DIR contains the game data (Data/, MP3/, ...).