mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r15046) -Fix (r15045): in case CanLoadFromRevision does not exist, only allow savedata from the same version as we are now
This commit is contained in:
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…
Reference in New Issue
Block a user