Skip to content

Commit

Permalink
Fixed small thing in P2P tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Gramps committed Sep 20, 2023
1 parent 8e0892d commit 16281eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/p2p.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Inside that handshake there was a call to the ***_read_P2P_Packet()*** function
if PACKET_SIZE > 0:
var PACKET: Dictionary = Steam.readP2PPacket(PACKET_SIZE, 0)

if PACKET.empty() or PACKET == null:
if PACKET.is_empty() or PACKET == null:
print("WARNING: read an empty packet with non-zero size!")

# Get the remote user's ID
Expand Down Expand Up @@ -300,7 +300,7 @@ To accomplish this, we add a single line of code to our **\_read_P2P_Packet** fu
if PACKET_SIZE > 0:
var PACKET: Dictionary = Steam.readP2PPacket(PACKET_SIZE, 0)

if PACKET.empty() or PACKET == null:
if PACKET.is_empty() or PACKET == null:
print("WARNING: read an empty packet with non-zero size!")

# Get the remote user's ID
Expand Down

0 comments on commit 16281eb

Please sign in to comment.