diff --git a/src/network/event.cpp b/src/network/event.cpp index 6334323a3..7072a6202 100644 --- a/src/network/event.cpp +++ b/src/network/event.cpp @@ -37,7 +37,10 @@ Event::Event(ENetEvent* event) type = EVENT_TYPE_MESSAGE; break; case ENET_EVENT_TYPE_NONE: - enet_packet_destroy(event->packet); + // Typically there's no packet data, but just in + // case test and delete it + if(event->packet) + enet_packet_destroy(event->packet); return; break; }