diff options
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
-rw-r--r-- | plugins/MirLua/src/m_core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp index d75f0435a0..e2e34ea717 100644 --- a/plugins/MirLua/src/m_core.cpp +++ b/plugins/MirLua/src/m_core.cpp @@ -216,7 +216,7 @@ static int core_Utf8DecodeW(lua_State *L) static int core_Free(lua_State *L)
{
- if (lua_type(L, 1) == LUA_TLIGHTUSERDATA)
+ if (lua_islightuserdata(L, 1))
{
void *ptr = lua_touserdata(L, 1);
mir_free(ptr);
|