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