summaryrefslogtreecommitdiff
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
commit55db451a3246a7be52546a922d731bea4c9a3dc0 (patch)
tree07ca9e9e4401a4728559b4241ca9124a797f205b
parent81157e3d91ec3d4ffbc9d00375dcb1a03da4c1a0 (diff)
downloadopenttd-55db451a3246a7be52546a922d731bea4c9a3dc0.tar.xz
(svn r15049) -Fix (r15045): MSVC performance warning
-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()