-
Notifications
You must be signed in to change notification settings - Fork 716
Open
Description
Apparently when using
while (enet_host_service(m_server, &event, 0) > 0)
{
switch (event.type)
{
case ENET_EVENT_TYPE_DISCONNECT:
}
}
``
an event comes with peer data removed.
so event.peer->data is 0
event.peer->connectionID is 0
all is nulled and I have no way to tell who has disconnected.
the workaround is to store a map of peer pointers in memory itself represented as int or str.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels