summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-01-13 02:03:03 +0000
committerglx <glx@openttd.org>2009-01-13 02:03:03 +0000
commit37500a13f666e471081a66c837b385901888f406 (patch)
tree07ca9e9e4401a4728559b4241ca9124a797f205b /src
parent0adcb5bc2f875e08cdfa17e7d0454707230915a1 (diff)
downloadopenttd-37500a13f666e471081a66c837b385901888f406.tar.xz
(svn r15049) -Fix (r15045): MSVC performance warning
Diffstat (limited to 'src')
-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()