From 55db451a3246a7be52546a922d731bea4c9a3dc0 Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 13 Jan 2009 02:03:03 +0000 Subject: (svn r15049) -Fix (r15045): MSVC performance warning --- src/ai/ai_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3-70-g09d2