diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-16 20:20:18 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-16 20:20:18 +0000 |
commit | 3a7b2c4c645ffecd24df0862b649e79ca5edbfbf (patch) | |
tree | 85f86c67d5595ac160a208cfe22f4dc730f0ddc8 /plugins/MirLua/src/mlua.cpp | |
parent | 90b62d09470b28b2d39e073b4baee403ffc86903 (diff) |
MirLua: added NULL to core module
git-svn-id: http://svn.miranda-ng.org/main/trunk@14219 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index f7b5208ccb..cf3562bedc 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -13,6 +13,8 @@ CMLua::CMLua() : L(NULL) lua_pop(L, 1);
luaL_newlib(L, coreLib);
+ lua_pushlightuserdata(L, NULL); + lua_setfield(L, -2, "NULL");
lua_setglobal(L, "m");
Preload(MLUA_DATABASE, luaopen_m_database);
|