(svn r15046) -Fix (r15045): in case CanLoadFromRevision does not exist, only allow savedata from the same version as we are now

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
truebrain 16 years ago
parent bcbbf2c366
commit e06e372529

@ -73,7 +73,7 @@ const char *AIFileInfo::GetInstanceName()
bool AIFileInfo::CanLoadFromVersion(int version)
{
if (version == -1) return true;
if (!this->engine->MethodExists(*this->SQ_instance, "CanLoadFromVersion")) return true;
if (!this->engine->MethodExists(*this->SQ_instance, "CanLoadFromVersion")) return (version == this->GetVersion());
HSQUIRRELVM vm = this->engine->GetVM();
int top = sq_gettop(vm);

Loading…
Cancel
Save