summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_utils.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-01-16 19:31:49 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-01-16 19:31:49 +0000
commit82ae5fccc82f399b9a6ca52d0dc519f849eff9e4 (patch)
tree5cf4e1571b85399c670480ae0ef2aacf5da4ad90 /plugins/MirLua/src/mlua_utils.cpp
parent972ac60e92a1ffc711cb4225232bc6862f421d84 (diff)
MirLua: project cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16104 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_utils.cpp')
-rw-r--r--plugins/MirLua/src/mlua_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/mlua_utils.cpp b/plugins/MirLua/src/mlua_utils.cpp
index d0c89090b3..49078c9563 100644
--- a/plugins/MirLua/src/mlua_utils.cpp
+++ b/plugins/MirLua/src/mlua_utils.cpp
@@ -116,7 +116,7 @@ int luaM_toucs2(lua_State *L)
bool luaM_toboolean(lua_State *L, int idx)
{
- if (lua_type(L, idx) == LUA_TNUMBER)
+ if (lua_isnumber(L, idx))
return lua_tonumber(L, idx) > 0;
return lua_toboolean(L, idx) > 0;
}