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 6d8449e3b..9e439cce2 100644
--- a/src/ai/ai_info.cpp
+++ b/src/ai/ai_info.cpp
@@ -89,7 +89,7 @@ bool AIFileInfo::CanLoadFromVersion(int version)
sq_getstackobj(vm, -1, &ret);
sq_settop(vm, top);
- return sq_objtobool(&ret);
+ return sq_objtobool(&ret) != 0;
}
const char *AIFileInfo::GetDirName()