From 9790a2af569edec1cb9f0c5c9da7ba558f9ff4b4 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sat, 9 Aug 2014 21:36:48 +0300 Subject: [PATCH] Eluna fix VS warning --- LuaEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaEngine.cpp b/LuaEngine.cpp index 9882d8f..26b83cd 100644 --- a/LuaEngine.cpp +++ b/LuaEngine.cpp @@ -501,7 +501,7 @@ static uint32 CheckUnsignedRange(lua_State *L, int narg, uint32 max) template<> bool Eluna::CHECKVAL(lua_State* L, int narg) { - return lua_toboolean(L, narg); + return lua_toboolean(L, narg) != 0; } template<> float Eluna::CHECKVAL(lua_State* L, int narg) {