From 37500a13f666e471081a66c837b385901888f406 Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 13 Jan 2009 02:03:03 +0000 Subject: [PATCH] (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 6d8449e3b9..9e439cce26 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()