mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed compilation (resolves issue #938.)
This commit is contained in:
@@ -487,7 +487,7 @@ static int host_get_peer(lua_State *l) {
|
|||||||
|
|
||||||
static int host_gc(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.
|
// 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.
|
// We don't want to crash by destroying a non-existant host.
|
||||||
if (*host) {
|
if (*host) {
|
||||||
enet_host_destroy(*host);
|
enet_host_destroy(*host);
|
||||||
|
|||||||
Reference in New Issue
Block a user