summaryrefslogtreecommitdiff
path: root/packets/packet.gd
diff options
context:
space:
mode:
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)