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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user