From 82ae5fccc82f399b9a6ca52d0dc519f849eff9e4 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 16 Jan 2016 19:31:49 +0000 Subject: MirLua: project cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@16104 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/MirLua/src/m_core.cpp') 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); -- cgit v1.2.3