Explorar o código

Fixed luaopen_enet to indicate the correct number of return values

Alex Szpakowski %!s(int64=12) %!d(string=hai) anos
pai
achega
03ea8c8913
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      enet.c

+ 1 - 1
enet.c

@@ -748,5 +748,5 @@ int luaopen_enet(lua_State *l) {
 	lua_setfield(l, LUA_REGISTRYINDEX, "enet_peers");
 
 	luaL_register(l, "enet", enet_funcs);
-	return 0;
+	return 1;
 }