mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +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)
|
bool AIFileInfo::CanLoadFromVersion(int version)
|
||||||
{
|
{
|
||||||
if (version == -1) return true;
|
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();
|
HSQUIRRELVM vm = this->engine->GetVM();
|
||||||
int top = sq_gettop(vm);
|
int top = sq_gettop(vm);
|
||||||
|
Loading…
Reference in New Issue
Block a user