diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-06-29 14:14:30 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-06-29 14:14:30 +0000 |
commit | ad377449e8662ecc2f10efcc5fbcbbe62fe76feb (patch) | |
tree | 51ceaa3ce2934a721f94512635eed487cd45a07c /plugins/MirLua/src | |
parent | 9c9afbb56c8f5ac3e302d0073222e95162513004 (diff) |
MirLua: fixed tomparam function
git-svn-id: http://svn.miranda-ng.org/main/trunk@17043 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r-- | plugins/MirLua/src/mlua_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/mlua_utils.cpp b/plugins/MirLua/src/mlua_utils.cpp index 0abf0c66c1..6ee3f44186 100644 --- a/plugins/MirLua/src/mlua_utils.cpp +++ b/plugins/MirLua/src/mlua_utils.cpp @@ -191,9 +191,9 @@ UINT_PTR luaM_tomparam(lua_State *L, int idx) return (UINT_PTR)lua_touserdata(L, idx);
case LUA_TNUMBER:
{
- if (lua_isinteger(L, 1))
+ if (lua_isinteger(L, idx))
{
- lua_Integer value = lua_tointeger(L, 1);
+ lua_Integer value = lua_tointeger(L, idx);
return value <= INTPTR_MAX
? (UINT_PTR)value
: NULL;
|