Don't set the enet global when requiring enet

--HG--
branch : minor
This commit is contained in:
Bart van Strien
2016-11-02 13:08:56 +01:00
parent bdc653d9a5
commit 452a8a877e
+1 -1
View File
@@ -800,7 +800,7 @@ int luaopen_enet(lua_State *l) {
lua_setfield(l, LUA_REGISTRYINDEX, "enet_peers");
luax_register(l, "enet", enet_funcs);
luax_register(l, nullptr, enet_funcs);
// return the enet table created with luaL_register
return 1;