Skip to content

Commit

Permalink
Fixed missing brackets.
Browse files Browse the repository at this point in the history
  • Loading branch information
woollybah committed Aug 18, 2021
1 parent c38cf39 commit 11e34bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnet.mod/gnet.bmx
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ Type TGNetHost
Select ev.event()
Case ENET_EVENT_TYPE_CONNECT
Assert Not peer Else "GNet error"
peer=AddPeer( ev.peer )
peer=AddPeer( ev.peer() )
Case ENET_EVENT_TYPE_DISCONNECT
If peer
For Local obj:TGNetObject=EachIn _objects
Expand All @@ -497,7 +497,7 @@ Type TGNetHost
Case ENET_EVENT_TYPE_RECEIVE
Assert peer Else "GNet error"
Local msg:TGNetMsg=peer.RecvMsg( ev.packet() )
enet_packet_destroy ev.packet
enet_packet_destroy ev.packet()
Select msg.state
Case GNET_MESSAGE
Local obj:TGNetObject=_idMap[msg.id]
Expand Down

0 comments on commit 11e34bf

Please sign in to comment.