summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_info.cpp2
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);