Przeglądaj źródła

Fixed compilation (resolves issue #938.)

Alex Szpakowski 11 lat temu
rodzic
commit
7bcb48c562
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/libraries/enet/enet.cpp

+ 1 - 1
src/libraries/enet/enet.cpp

@@ -487,7 +487,7 @@ static int host_get_peer(lua_State *l) {
 
 static int host_gc(lua_State *l) {
 	// We have to manually grab the userdata so that we can set it to NULL.
-	ENetHost** host = luaL_checkudata(l, 1, "enet_host");
+	ENetHost** host = (ENetHost**)luaL_checkudata(l, 1, "enet_host");
 	// We don't want to crash by destroying a non-existant host.
 	if (*host) {
 		enet_host_destroy(*host);