diff options
author | truebrain <truebrain@openttd.org> | 2009-01-13 01:50:51 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2009-01-13 01:50:51 +0000 |
commit | 75b8afc136f66bd1425cbc739a662e3bf13a85f4 (patch) | |
tree | 937a6aa84774e90f244304149af1b5a76a03ff22 /src/ai | |
parent | 5573d9a459746442e5374fe7298230a4c2981bce (diff) | |
download | openttd-75b8afc136f66bd1425cbc739a662e3bf13a85f4.tar.xz |
(svn r15046) -Fix (r15045): in case CanLoadFromRevision does not exist, only allow savedata from the same version as we are now
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_info.cpp b/src/ai/ai_info.cpp index e55affaa5..0b2539bba 100644 --- a/src/ai/ai_info.cpp +++ b/src/ai/ai_info.cpp @@ -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); |