Fixed a bug when requiring enet

This commit is contained in:
Alex Szpakowski
2013-07-17 03:38:15 -03:00
parent 57aa632841
commit f9ce521794
+3 -1
View File
@@ -749,5 +749,7 @@ int luaopen_enet(lua_State *l) {
lua_setfield(l, LUA_REGISTRYINDEX, "enet_peers");
luaL_register(l, "enet", enet_funcs);
return 0;
// return the enet table created with luaL_register
return 1;
}