mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed a bug when requiring enet
This commit is contained in:
@@ -749,5 +749,7 @@ int luaopen_enet(lua_State *l) {
|
|||||||
lua_setfield(l, LUA_REGISTRYINDEX, "enet_peers");
|
lua_setfield(l, LUA_REGISTRYINDEX, "enet_peers");
|
||||||
|
|
||||||
luaL_register(l, "enet", enet_funcs);
|
luaL_register(l, "enet", enet_funcs);
|
||||||
return 0;
|
|
||||||
|
// return the enet table created with luaL_register
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user