summaryrefslogtreecommitdiff
path: root/packets/packet.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-11-29 21:54:32 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-11-29 21:54:32 +0100
commit313afffce7a823c30acf4853b083f9ca5132e879 (patch)
tree5a7370392ebd39314612166b35e6f53e67441c0b /packets/packet.gd
parente8aa9f50886b66d525307a58d71036e6fd3d4aa1 (diff)
next commit
Diffstat (limited to 'packets/packet.gd')
-rw-r--r--packets/packet.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/packets/packet.gd b/packets/packet.gd
index 9f82782..33db0b1 100644
--- a/packets/packet.gd
+++ b/packets/packet.gd
@@ -15,7 +15,7 @@ func get_byte_length() -> int:
## [param packet_length] is only needed when the packet has a variable length.
func get_header(packet_length: int = 0) -> PackedByteArray:
var bytes = PackedByteArray([0,0])
- bytes.encode_u16(0, self.header)
+ bytes.encode_u16(0, self.HEADER)
if packet_length > 0:
bytes.resize(4)