1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Fixed crash on casting spell. Fixed giving resources from towns. Version set to 0.74c. Incremented save format version.

Disabled adventure AI. Will be released as dev build.
This commit is contained in:
Michał W. Urbańczyk
2009-11-28 01:42:08 +00:00
parent 82faf7538e
commit 7f97a56a28
8 changed files with 95 additions and 85 deletions

View File

@ -246,16 +246,16 @@ CLoadFile::CLoadFile( const std::string &fname )
if(std::memcmp(buffer,"VCMI",4))
{
tlog1 << "Error: wrong save format! (file " << fname << " )\n";
tlog1 << "Error: not a VCMI save! (file " << fname << " )\n";
delete sfile;
sfile = NULL;
return;
}
*this >> myVersion;
if(myVersion > version || myVersion < 110)
if(myVersion != version)
{
tlog1 << "Wrong save format! (file " << fname << " )\n";
tlog1 << "Error: Not supported save format! (file " << fname << " )\n";
delete sfile;
sfile = NULL;
}