diff options
Diffstat (limited to 'plugins/MirLua/src/utils.cpp')
-rw-r--r-- | plugins/MirLua/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/utils.cpp b/plugins/MirLua/src/utils.cpp index cc75303af7..d4a4578cd9 100644 --- a/plugins/MirLua/src/utils.cpp +++ b/plugins/MirLua/src/utils.cpp @@ -91,8 +91,8 @@ int luaM_getenv(lua_State *L) bool luaM_toboolean(lua_State *L, int idx) { - if (lua_isnumber(L, idx)) - return lua_tonumber(L, idx) > 0; + if (lua_isinteger(L, idx)) + return lua_tointeger(L, idx) > 0; return lua_toboolean(L, idx) > 0; } |