diff options
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;
|